diff options
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 0fbacdc96e..f8c677bd50 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2166,8 +2166,8 @@ consult the installation file that came with this distribution, or visit \n\ int i; ZeroMemory(&kid_cgi_ps, sizeof(kid_cgi_ps)); - kids = children < WIN32_MAX_SPAWN_CHILDREN ? children : WIN32_MAX_SPAWN_CHILDREN; - + kids = children < WIN32_MAX_SPAWN_CHILDREN ? children : WIN32_MAX_SPAWN_CHILDREN; + SetConsoleCtrlHandler(fastcgi_cleanup, TRUE); /* kids will inherit the env, don't let them spawn */ @@ -2264,10 +2264,10 @@ consult the installation file that came with this distribution, or visit \n\ fprintf(stderr, "unable to spawn: [0x%08lx]: %s\n", err, err_text); } } - + WaitForMultipleObjects(kids, kid_cgi_ps, FALSE, INFINITE); } - + /* restore my env */ SetEnvironmentVariable("PHP_FCGI_CHILDREN", kid_buf); @@ -2748,7 +2748,7 @@ fastcgi_request_done: } /* end of fastcgi loop */ } - + if (request) { fcgi_destroy_request(request); } |