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

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

index 8672fe9d7fe62ad006e2bf9a6c6b6ffcea58a7a0..f5efa28a46d6bcaf3996d09bbcc45ac6f2a18841 100644 (file)
 
 
 
-#ifdef ENABLE_COVERAGE
-void handle_signal(int signal)
-{
-  exit(0);
-}
-#endif
-
 // cons/des
 MDS::MDS(const std::string &n, Messenger *m, MonClient *mc) : 
   Dispatcher(m->cct),
@@ -512,10 +505,6 @@ int MDS::init(int wanted_state)
 
   mds_lock.Unlock();
 
-#ifdef ENABLE_COVERAGE
-  signal(SIGTERM, handle_signal);
-#endif
-
   return 0;
 }