Browse Source

fixed streaming cgi output (like cgi-irc)

git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-merge-1.4.x@870 152afb58-edef-0310-8abb-c4023f1b3aa9
svn/tags/lighttpd-1.4.8
Jan Kneschke 16 years ago
parent
commit
2cc4f96765
  1. 3
      NEWS
  2. 4
      src/mod_cgi.c

3
NEWS

@ -33,7 +33,8 @@ NEWS
* fixed duplicate headers in mod_proxy
* fixed Content-Length in HEAD request in mod_proxy
* fixed unsigned/signed comparisions
* TODO: streaming CGI
* fixed streaming in mod_cgi
* TODO: listen on UNIX-socket
- 1.4.7 - 2005-11-02

4
src/mod_cgi.c

@ -1203,6 +1203,10 @@ SUBREQUEST_FUNC(mod_cgi_handle_subrequest) {
#ifndef __WIN32
switch(waitpid(hctx->pid, &status, WNOHANG)) {
case 0:
/* we only have for events here if we don't have the header yet,
* otherwise the event-handler will send us the incoming data */
if (con->file_started) return HANDLER_FINISHED;
return HANDLER_WAIT_FOR_EVENT;
case -1:
if (errno == EINTR) return HANDLER_WAIT_FOR_EVENT;

Loading…
Cancel
Save