diff options
author | Glenn Strauss <gstrauss@gluelogic.com> | 2017-09-10 22:07:07 -0400 |
---|---|---|
committer | Glenn Strauss <gstrauss@gluelogic.com> | 2017-09-10 22:08:04 -0400 |
commit | e951152e2b54831d2cb1d325c237f8462713b953 (patch) | |
tree | abab94e876acbcf1a08dcd2a8418df82b8d1e24c | |
parent | f4e1357df5fd219083c9c26c319f7ceff1677378 (diff) | |
download | lighttpd-git-e951152e2b54831d2cb1d325c237f8462713b953.tar.gz |
[mod_cgi] add FDEVENT_IN upon CGI exit
add FDEVENT_IN in addition to FDEVENT_HUP when triggering
cgi_handle_fdevent() after the CGI process exits.
(This helps improve reliability when running tests under Cygwin)
-rw-r--r-- | src/mod_cgi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mod_cgi.c b/src/mod_cgi.c index 4eea5269..a611dbcc 100644 --- a/src/mod_cgi.c +++ b/src/mod_cgi.c @@ -1038,7 +1038,7 @@ static handler_t cgi_waitpid_cb(server *srv, void *p_d, pid_t pid, int status) { if (hctx) { hctx->pid = -1; - cgi_handle_fdevent(srv, hctx, FDEVENT_HUP); + cgi_handle_fdevent(srv, hctx, FDEVENT_IN|FDEVENT_HUP); } return HANDLER_FINISHED; |