From 3c056973a1b4d3cca5681ac4a2c6b2e5937b9053 Mon Sep 17 00:00:00 2001 From: Tatsuhiro Tsujikawa Date: Sun, 17 Aug 2014 00:05:24 +0900 Subject: [PATCH] nghttpx: Ignore SIGCHLD not to create zombie on SIGUSR2 if -D is used --- src/shrpx.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/shrpx.cc b/src/shrpx.cc index 45f795c6..9d81f4e1 100644 --- a/src/shrpx.cc +++ b/src/shrpx.cc @@ -1790,7 +1790,8 @@ int main(int argc, char **argv) struct sigaction act; memset(&act, 0, sizeof(struct sigaction)); act.sa_handler = SIG_IGN; - sigaction(SIGPIPE, &act, 0); + sigaction(SIGPIPE, &act, nullptr); + sigaction(SIGCHLD, &act, nullptr); event_loop();