From: Dmitry Stogov Date: Thu, 21 Jun 2007 08:40:56 +0000 (+0000) Subject: no need to return exit status of the last fastcgi request X-Git-Tag: BEFORE_IMPORT_OF_MYSQLND~412 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=22527c8e031f369abac2e9492d022201c91e1de2;p=php no need to return exit status of the last fastcgi request --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 81f9b2743a..15a4ffa662 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -1748,6 +1748,10 @@ fastcgi_request_done: if (bindpath) { free(bindpath); } + if (max_requests != 1) { + /* no need to return exit_status of the last request */ + exit_status = 0; + } break; } /* end of fastcgi loop */