summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGlenn Strauss <gstrauss@gluelogic.com>2017-09-10 22:07:07 -0400
committerGlenn Strauss <gstrauss@gluelogic.com>2017-09-10 22:08:04 -0400
commite951152e2b54831d2cb1d325c237f8462713b953 (patch)
treeabab94e876acbcf1a08dcd2a8418df82b8d1e24c
parentf4e1357df5fd219083c9c26c319f7ceff1677378 (diff)
downloadlighttpd1.4-e951152e2b54831d2cb1d325c237f8462713b953.tar.gz
lighttpd1.4-e951152e2b54831d2cb1d325c237f8462713b953.zip
[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.c2
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;