nghttpx: Ignore SIGCHLD not to create zombie on SIGUSR2 if -D is used

This commit is contained in:
Tatsuhiro Tsujikawa 2014-08-17 00:05:24 +09:00
parent d17f35a488
commit 3c056973a1
1 changed files with 2 additions and 1 deletions

View File

@ -1790,7 +1790,8 @@ int main(int argc, char **argv)
struct sigaction act; struct sigaction act;
memset(&act, 0, sizeof(struct sigaction)); memset(&act, 0, sizeof(struct sigaction));
act.sa_handler = SIG_IGN; act.sa_handler = SIG_IGN;
sigaction(SIGPIPE, &act, 0); sigaction(SIGPIPE, &act, nullptr);
sigaction(SIGCHLD, &act, nullptr);
event_loop(); event_loop();