HANDLER_GO_ON results in HANDLER_FINISHED later even if the we only received the header yet which is a bit too early.
git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@613 152afb58-edef-0310-8abb-c4023f1b3aa9
This commit is contained in:
parent
3af5f02398
commit
9db5407390
|
@ -1127,12 +1127,7 @@ SUBREQUEST_FUNC(mod_cgi_handle_subrequest) {
|
|||
#ifndef __WIN32
|
||||
switch(waitpid(hctx->pid, &status, WNOHANG)) {
|
||||
case 0:
|
||||
/* not finished yet */
|
||||
if (con->file_started) {
|
||||
return HANDLER_GO_ON;
|
||||
} else {
|
||||
return HANDLER_WAIT_FOR_EVENT;
|
||||
}
|
||||
return HANDLER_WAIT_FOR_EVENT;
|
||||
case -1:
|
||||
if (errno == EINTR) return HANDLER_WAIT_FOR_EVENT;
|
||||
|
||||
|
|
Loading…
Reference in New Issue