]> 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:43 +0000 (08:40 +0000)
committerDmitry Stogov <dmitry@php.net>
Thu, 21 Jun 2007 08:40:43 +0000 (08:40 +0000)
sapi/cgi/cgi_main.c

index 3e70e45523ed53210e7f5ee5e8a7d6fa0a9311ad..67559d6895a85222e3d3ceee25a1428d25ba8b94 100644 (file)
@@ -1834,6 +1834,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 */