cvs: php-src /sapi/cgi cgi_main.c
| From: | Dmitry Stogov | Date: | Thu, 21 Jun 2007 08:40:56 +0000 |
| Subject: | cvs: php-src /sapi/cgi cgi_main.c | ||
| Groups: | php.cvs | ||
| Request: | Send a blank email to php-cvs+get-44898@lists.php.net to get a copy of this message | ||
dmitry Thu Jun 21 08:40:56 2007 UTC
Modified files:
/php-src/sapi/cgi cgi_main.c
Log:
no need to return exit status of the last fastcgi request
http://cvs.php.net/viewvc.cgi/php-src/sapi/cgi/cgi_main.c?r1=1.325&r2=1.326&diff_format=u
Index: php-src/sapi/cgi/cgi_main.c
diff -u php-src/sapi/cgi/cgi_main.c:1.325 php-src/sapi/cgi/cgi_main.c:1.326
--- php-src/sapi/cgi/cgi_main.c:1.325 Mon Jun 4 15:37:38 2007
+++ php-src/sapi/cgi/cgi_main.c Thu Jun 21 08:40:56 2007
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: cgi_main.c,v 1.325 2007/06/04 15:37:38 tony2001 Exp $ */
+/* $Id: cgi_main.c,v 1.326 2007/06/21 08:40:56 dmitry Exp $ */
#include "php.h"
#include "php_globals.h"
@@ -1748,6 +1748,10 @@
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 */