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:
parent
5989a29d7b
commit
8b3cc695b5
1 changed files with 4 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue