nghttpx: Ignore SIGCHLD not to create zombie on SIGUSR2 if -D is used
This commit is contained in:
parent
d17f35a488
commit
3c056973a1
|
@ -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();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue