From: Guus Sliepen Date: Fri, 3 Jun 2011 13:50:20 +0000 (+0200) Subject: Don't ignore SIGCHLD, system() needs it. X-Git-Tag: release-1.1pre1~13 X-Git-Url: https://www.tinc-vpn.org/git/browse?a=commitdiff_plain;ds=sidebyside;h=8b3cc695b56d4ab5e51c7e194153894f920b307f;p=tinc Don't ignore SIGCHLD, system() needs it. 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. --- diff --git a/src/process.c b/src/process.c index 89678349..8c6679b8 100644 --- a/src/process.c +++ b/src/process.c @@ -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