]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
mon: drop special SIGTERM handler
authorSage Weil <sage@newdream.net>
Wed, 21 Dec 2011 22:17:42 +0000 (14:17 -0800)
committerSage Weil <sage@newdream.net>
Wed, 21 Dec 2011 22:17:42 +0000 (14:17 -0800)
Default does exit(0).

Signed-off-by: Sage Weil <sage@newdream.net>
src/mon/Monitor.cc

index c2e94e3a36adc77cb33f9a7bdba19e6935db8b8c..2f8ee63324b275fbe62644a2e803e4d69e1c639f 100644 (file)
@@ -87,13 +87,6 @@ CompatSet get_ceph_mon_feature_compat_set()
                   ceph_mon_feature_incompat);
 }
 
-#ifdef ENABLE_COVERAGE
-void handle_signal(int signal)
-{
-  exit(0);
-}
-#endif
-
 Monitor::Monitor(CephContext* cct_, string nm, MonitorStore *s, Messenger *m, MonMap *map) :
   Dispatcher(cct_),
   name(nm),
@@ -250,11 +243,6 @@ void Monitor::init()
   bootstrap();
   
   lock.Unlock();
-
-#ifdef ENABLE_COVERAGE
-  signal(SIGTERM, handle_signal);
-#endif
-
 }
 
 void Monitor::register_cluster_logger()