aboutsummaryrefslogtreecommitdiff
path: root/fcgiwrap.c
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2013-02-03 14:08:05 +0100
committerFurkan Sahin <furkan-dev@proton.me>2013-02-03 14:08:05 +0100
commit6641941e8b6b547ddeaafe529309bd41c381439f (patch)
treef7b0fdd2cd4d15f80a470a2c4a649c36ea2224da /fcgiwrap.c
parent702b3091ba5c974e73b83533883506d6c502c544 (diff)
Close FCGI socket before executing script
We do it in a rather violent way to avoid FCGI shutdown (the parent must keep the socket alive and working)
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 d128e12..b865295 100644
--- a/fcgiwrap.c
+++ b/fcgiwrap.c
@@ -531,6 +531,8 @@ static void handle_fcgi_request(void)
close(pipe_out[1]);
close(pipe_err[1]);
+ close(FCGI_fileno(FCGI_stdout));
+
signal(SIGCHLD, SIG_DFL);
signal(SIGPIPE, SIG_DFL);