From 8b3cc695b56d4ab5e51c7e194153894f920b307f Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Fri, 3 Jun 2011 15:50:20 +0200 Subject: [PATCH] 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. --- src/process.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index 8967834..8c6679b 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 -- 2.25.1