]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
msgr: don't need to reinstall signals after daemon
authorColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 21 Jan 2011 15:03:01 +0000 (07:03 -0800)
committerColin Patrick McCabe <cmccabe@alumni.cmu.edu>
Fri, 21 Jan 2011 15:03:01 +0000 (07:03 -0800)
Signed-off-by: Colin McCabe <colin.mccabe@dreamhost.com>
src/msg/SimpleMessenger.cc

index b5f54fc8f0cbe2858aaff89976421cef29d8a81d..913d4c2be9b85e5af4fb62e938518011a00041b8 100644 (file)
@@ -34,7 +34,6 @@
 #include <fstream>
 
 #include "common/Timer.h"
-#include "common/signal.h"
 
 #define DOUT_SUBSYS ms
 #undef dout_prefix
@@ -2384,7 +2383,6 @@ int SimpleMessenger::start(bool nodaemon)
 
     if (1) {
       daemon(1, 0);
-      install_standard_sighandlers();
       write_pid_file(getpid());
     } else {
       pid_t pid = fork();
@@ -2396,7 +2394,6 @@ int SimpleMessenger::start(bool nodaemon)
        ::close(2);
        _exit(0);
       }
-      install_standard_sighandlers();
     }
  
     if (g_conf.chdir && g_conf.chdir[0]) {