[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)
@@ -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;
