diff options
| author | Grzegorz Nosek <root@localdomain.pl> | 2013-02-03 14:08:05 +0100 |
|---|---|---|
| committer | Grzegorz Nosek <root@localdomain.pl> | 2013-02-03 14:14:09 +0100 |
| commit | d4c32ed0330c44f4edc5355112cafc4e1dc3aaad (patch) | |
| tree | f7b0fdd2cd4d15f80a470a2c4a649c36ea2224da | |
| parent | 8aae1f5bf8d135d78e53c054876e2c9dc86936b9 (diff) | |
| download | fcgiwrap-d4c32ed0330c44f4edc5355112cafc4e1dc3aaad.tar.xz fcgiwrap-d4c32ed0330c44f4edc5355112cafc4e1dc3aaad.zip | |
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)
| -rw-r--r-- | fcgiwrap.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); |
