box/center_main.cc
@@ -83,12 +83,6 @@ std::atomic<bool> run_; }; bool CenterInit(bhome_shm::SharedMemory &shm) { ShmSocket create(shm, BHGlobalSenderAddress(), 16); return true; } } // namespace int center_main(int argc, const char *argv[]) { @@ -108,7 +102,10 @@ if (strcasecmp(lvl.c_str(), "fatal") == 0) { ns_log::ResetLogLevel(ns_log::LogLevel::fatal); } auto &shm = BHomeShm(); CenterInit(shm); if (!CenterInit(shm)) { LOG_FATAL() << "init memory error."; exit(0); } GlobalInit(shm); InstanceFlag inst(shm, kCenterRunningFlag);