[mod_cgi] simplify mod_cgi_handle_subrequest()
commitf2cbd0a3aaf3db34404de35919397a7e15dccaca
authorGlenn Strauss <gstrauss@gluelogic.com>
Fri, 4 Mar 2016 18:54:28 +0000 (4 18:54 +0000)
committerStefan Bühler <stbuehler@web.de>
Fri, 4 Mar 2016 18:54:28 +0000 (4 18:54 +0000)
treec7dc73c1d9dd15a919bc2fdbfa21f981772dce2b
parente5e66f791f43e64c3b3d82c05aad8f6e845dd29a
[mod_cgi] simplify mod_cgi_handle_subrequest()

wait for CGI to close stdout, so we read EOF on pipe to end CGI response

remove extra call to waitpid() which will occur after process exits
if it has not already been explicitly closed by CGI (and has not been
inherited by CGI forked children)  (If CGI forks, then it should close
its stdout response pipe when response is done, especially if it intends
to perform lengthy post-processing in the background.)

From: Glenn Strauss <gstrauss@gluelogic.com>

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@3091 152afb58-edef-0310-8abb-c4023f1b3aa9
NEWS
src/mod_cgi.c