]> git.meshlink.io Git - meshlink/commitdiff
Don't ignore SIGCHLD, system() needs it.
authorGuus Sliepen <guus@tinc-vpn.org>
Fri, 3 Jun 2011 13:50:20 +0000 (15:50 +0200)
committerGuus Sliepen <guus@tinc-vpn.org>
Fri, 3 Jun 2011 13:50:20 +0000 (15:50 +0200)
But we do ignore SIGPIPE, and tinc 1.0.x signals that are no longer used
(SIGUSR1 and SIGUSR2), since the default handler of these signals is to
terminate tincd immediately.

src/process.c

index 89678349c0f97821deddcad58826d3cfe572bd55..8c6679b808a4ceff0f4058e90217f7e88afc55fb 100644 (file)
@@ -224,7 +224,10 @@ bool init_service(void) {
 bool detach(void) {
 #ifndef HAVE_MINGW
        signal(SIGALRM, SIG_IGN);
-       signal(SIGCHLD, SIG_IGN);
+       signal(SIGPIPE, SIG_IGN);
+       signal(SIGUSR1, SIG_IGN);
+       signal(SIGUSR2, SIG_IGN);
+       signal(SIGWINCH, SIG_IGN);
 
        closelogger();
 #endif