From d4c32ed0330c44f4edc5355112cafc4e1dc3aaad Mon Sep 17 00:00:00 2001 From: Grzegorz Nosek Date: Sun, 3 Feb 2013 14:08:05 +0100 Subject: 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) --- fcgiwrap.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'fcgiwrap.c') 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); -- cgit v1.2.3