diff options
Diffstat (limited to 'sapi/cgi')
-rw-r--r-- | sapi/cgi/README.FastCGI | 4 | ||||
-rw-r--r-- | sapi/cgi/cgi_main.c | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/sapi/cgi/README.FastCGI b/sapi/cgi/README.FastCGI index f0f11e102d..4d34ff3dac 100644 --- a/sapi/cgi/README.FastCGI +++ b/sapi/cgi/README.FastCGI @@ -91,8 +91,8 @@ use the above configuration, but rather the following. Alias /fcgi-bin/ /space/fcgi-bin/ FastCgiServer /path/to/php-cgi -processes 5 -For either of the above configurations, we need to tell Apache to -use the FastCGI binary /fcgi-bin/php to deliver PHP pages. +For either of the above configurations, we need to tell Apache to +use the FastCGI binary /fcgi-bin/php to deliver PHP pages. All that is needed is: AddType application/x-httpd-fastphp .php diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 336bee186c..9e7d7726df 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -2134,8 +2134,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; + InitializeCriticalSection(&cleanup_lock); SetConsoleCtrlHandler(fastcgi_cleanup, TRUE); @@ -2242,7 +2242,7 @@ consult the installation file that came with this distribution, or visit \n\ WaitForMultipleObjects(kids, kid_cgi_ps, FALSE, INFINITE); } - + parent_loop_end: /* restore my env */ SetEnvironmentVariable("PHP_FCGI_CHILDREN", kid_buf); |