summaryrefslogtreecommitdiff
path: root/sapi/cgi/cgi_main.c
diff options
context:
space:
mode:
authorDmitry Stogov <dmitry@php.net>2007-02-15 12:33:16 +0000
committerDmitry Stogov <dmitry@php.net>2007-02-15 12:33:16 +0000
commita79d74b694a190804c952caa49d2d190b3c6f120 (patch)
treee596796348112caf6016f3201d89849b657b5fec /sapi/cgi/cgi_main.c
parent12bbbf022f9ff6ef291c577414ac7030815c2ebc (diff)
downloadphp-git-a79d74b694a190804c952caa49d2d190b3c6f120.tar.gz
Fixed bug #40414 (possivle endless fork() loop when running fastcgi)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-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 65c3e28dd1..f8375fd3c4 100644
--- a/sapi/cgi/cgi_main.c
+++ b/sapi/cgi/cgi_main.c
@@ -1392,6 +1392,10 @@ consult the installation file that came with this distribution, or visit \n\
exit(1);
}
+ if (fcgi_in_shutdown()) {
+ exit(0);
+ }
+
while (parent) {
do {
#ifdef DEBUG_FASTCGI