]> granicus.if.org Git - php/commitdiff
no need to return exit status of the last fastcgi request
authorDmitry Stogov <dmitry@php.net>
Thu, 21 Jun 2007 08:40:56 +0000 (08:40 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 21 Jun 2007 08:40:56 +0000 (08:40 +0000)
sapi/cgi/cgi_main.c

index 81f9b2743af774c292e57f98e34efd8549f05151..15a4ffa662014dd903191b2eb8d9194a97212f93 100644 (file)
@@ -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 */