From d89ff0ad812cdf178b911843bc3e8c04b2f00845 Mon Sep 17 00:00:00 2001
From: lichao <lichao@aiotlink.com>
Date: 星期四, 03 六月 2021 10:29:51 +0800
Subject: [PATCH] center remove old shm on start.

---
 box/center_main.cc |    4 ----
 1 files changed, 0 insertions(+), 4 deletions(-)

diff --git a/box/center_main.cc b/box/center_main.cc
index c7d67e3..0f582a4 100644
--- a/box/center_main.cc
+++ b/box/center_main.cc
@@ -30,10 +30,6 @@
 int center_main(int argc, const char *argv[])
 {
 	AppArg args(argc, argv);
-	if (args.Has("remove")) {
-		SharedMemory::Remove(BHomeShmName());
-		return 0;
-	}
 
 	ns_log::AddLog(BHLogDir() + "bhshmq_center.log");
 	auto lvl = args.Get("log", "info");

--
Gitblit v1.8.0