Ignore SIGCHLD.
This commit is contained in:
parent
f2076e3e70
commit
523c80c4e3
1 changed files with 2 additions and 4 deletions
|
@ -344,10 +344,7 @@ main(int argc, char **argv, char **envp)
|
|||
setup_signals();
|
||||
|
||||
if(detach())
|
||||
{
|
||||
kill(ppid, SIGTERM);
|
||||
exit(0);
|
||||
}
|
||||
exit(0);
|
||||
|
||||
if(security_init())
|
||||
return 1;
|
||||
|
@ -463,6 +460,7 @@ setup_signals(void)
|
|||
signal(SIGINT, sigint_handler);
|
||||
signal(SIGUSR1, sigusr1_handler);
|
||||
signal(SIGUSR2, sigusr2_handler);
|
||||
signal(SIGCHLD, SIG_IGN);
|
||||
}
|
||||
|
||||
RETSIGTYPE parent_exit(int a)
|
||||
|
|
Loading…
Reference in a new issue