summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-06-21 08:40:56 +0000
committerDmitry Stogov <dmitry@php.net>2007-06-21 08:40:56 +0000
commit22527c8e031f369abac2e9492d022201c91e1de2 (patch)
tree0d679a1a6ae3a31cfc28489de0dd6e37113ed632
parent4f2842450273daa0cde6f194896a8768fd8b1f10 (diff)
downloadphp-git-22527c8e031f369abac2e9492d022201c91e1de2.tar.gz
no need to return exit status of the last fastcgi request
-rw-r--r--sapi/cgi/cgi_main.c4
1 files changed, 4 insertions, 0 deletions
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 */