summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrzegorz Nosek <root@localdomain.pl>2008-06-10 20:11:14 +0200
committerGrzegorz Nosek <root@localdomain.pl>2008-06-10 20:11:14 +0200
commit86f0d04e4877a07b3afe5da5a854333adda89bf7 (patch)
treeb6d8afe1bb3b241abf85231ed07b929d7376d45f
parentd1810bfcbf9fc7015e55b19b04e357a775d92f59 (diff)
downloadfcgiwrap-86f0d04e4877a07b3afe5da5a854333adda89bf7.tar.xz
fcgiwrap-86f0d04e4877a07b3afe5da5a854333adda89bf7.zip
Restore default SIGCHLD handler (also SIGPIPE for completeness)
-rw-r--r--fcgiwrap.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/fcgiwrap.c b/fcgiwrap.c
index 40fa156..81de53c 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -478,6 +478,8 @@ static void handle_fcgi_request()
dup2(pipe_out[1], 1);
dup2(pipe_err[1], 2);
+ signal(SIGCHLD, SIG_DFL);
+ signal(SIGPIPE, SIG_DFL);
execl(filename, filename, NULL);
puts("Status: 502 Bad Gateway\nContent-type: text/plain\n\n502");
exit(99);