diff options
author | Dmitry Stogov <dmitry@php.net> | 2008-08-26 09:56:08 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2008-08-26 09:56:08 +0000 |
commit | ced680941abd8c66e035f45983f50729e23279ad (patch) | |
tree | 025cf8ed9d23539fd777abc0578237d4e62e7e78 /sapi/cgi/cgi_main.c | |
parent | 41a3bf43c904e7cd09bf01ac02accdaa53b2cf45 (diff) | |
download | php-git-ced680941abd8c66e035f45983f50729e23279ad.tar.gz |
Fixed bug #45786 (FastCGI process exited unexpectedly)
Diffstat (limited to 'sapi/cgi/cgi_main.c')
-rw-r--r-- | sapi/cgi/cgi_main.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 608943e582..73fa419e6c 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -776,7 +776,7 @@ static int sapi_cgi_deactivate(TSRMLS_D) #ifndef PHP_WIN32 !parent && #endif - !fcgi_finish_request((fcgi_request*)SG(server_context))) { + !fcgi_finish_request((fcgi_request*)SG(server_context), 0)) { php_handle_aborted_connection(); } } else { @@ -1914,7 +1914,7 @@ consult the installation file that came with this distribution, or visit \n\ get path_translated */ if (php_request_startup(TSRMLS_C) == FAILURE) { if (fastcgi) { - fcgi_finish_request(&request); + fcgi_finish_request(&request, 1); } SG(server_context) = NULL; php_module_shutdown(TSRMLS_C); @@ -2056,7 +2056,7 @@ fastcgi_request_done: /* only fastcgi will get here */ requests++; if (max_requests && (requests == max_requests)) { - fcgi_finish_request(&request); + fcgi_finish_request(&request, 1); if (bindpath) { free(bindpath); } |