diff options
author | Grzegorz Nosek <root@localdomain.pl> | 2009-03-17 20:43:50 +0100 |
---|---|---|
committer | Grzegorz Nosek <root@localdomain.pl> | 2009-03-17 20:43:50 +0100 |
commit | 372e6508425adf39749250966d50650fee797fff (patch) | |
tree | f935f35a03bb8068090a7ea3e02b325e89ff8070 | |
parent | cdd6b8475744989940f9ce8322999e9ed4f0a6ec (diff) | |
download | fcgiwrap-372e6508425adf39749250966d50650fee797fff.tar.xz fcgiwrap-372e6508425adf39749250966d50650fee797fff.zip |
Close child's pipe ends after dup2()ing them to the right places
Thanks to Fenixk19 for the report and patch.
-rw-r--r-- | fcgiwrap.c | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -488,6 +488,10 @@ static void handle_fcgi_request() dup2(pipe_out[1], 1); dup2(pipe_err[1], 2); + close(pipe_in[0]); + close(pipe_out[1]); + close(pipe_err[1]); + signal(SIGCHLD, SIG_DFL); signal(SIGPIPE, SIG_DFL); execl(filename, filename, NULL); |