summaryrefslogtreecommitdiff
path: root/fcgiwrap.c
diff options
context:
space:
mode:
Diffstat (limited to 'fcgiwrap.c')
-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);