From abdd1f5b45bb5d16322ed516e489b269073031ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marcus=20R=C3=BCckert?= Date: Mon, 2 Jul 2007 15:07:27 +0000 Subject: [PATCH] - do not check stale values on errno. EAGAIN is handled inside the function already. (#1245) git-svn-id: svn://svn.lighttpd.net/lighttpd/branches/lighttpd-1.4.x@1879 152afb58-edef-0310-8abb-c4023f1b3aa9 --- NEWS | 2 ++ src/mod_fastcgi.c | 1 - 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/NEWS b/NEWS index 7d7b2c24..ddfb18a6 100644 --- a/NEWS +++ b/NEWS @@ -19,6 +19,8 @@ NEWS (reported by Stefan Esser) * fixed possible crash in Auth-Digest header parser on trailing WS in mod_auth (reported by Stefan Esser) + * fixed check on stale errno values, which broke handling of broken fastcgi + applications. (#1245) - 1.4.15 - 2007-04-13 diff --git a/src/mod_fastcgi.c b/src/mod_fastcgi.c index 699f66bb..2a5fb1ac 100644 --- a/src/mod_fastcgi.c +++ b/src/mod_fastcgi.c @@ -2440,7 +2440,6 @@ static int fcgi_demux_response(server *srv, handler_ctx *hctx) { b->used = r + 1; /* one extra for the fake \0 */ b->ptr[b->used - 1] = '\0'; } else { - if (errno == EAGAIN) return 0; log_error_write(srv, __FILE__, __LINE__, "ssdsb", "unexpected end-of-file (perhaps the fastcgi process died):", "pid:", proc->pid,