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.
This commit is contained in:
Guus Sliepen 2011-06-03 15:50:20 +02:00
parent 5989a29d7b
commit 8b3cc695b5

View 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