diff options
| author | Ilia Alshanetsky <iliaa@php.net> | 2004-02-10 00:29:46 +0000 |
|---|---|---|
| committer | Ilia Alshanetsky <iliaa@php.net> | 2004-02-10 00:29:46 +0000 |
| commit | 242296faeb75c129c346168e289ba422a51339a8 (patch) | |
| tree | 9609f3236980ccc5303d11ea4b4f3e562aecff4f /sapi/cgi/cgi_main.c | |
| parent | 0f9d01d8acdb361b250ce084b0fdbd491d98f754 (diff) | |
| download | php-git-242296faeb75c129c346168e289ba422a51339a8.tar.gz | |
Fixed bug #26758 (FastCGI exits immediately with status 255).
Diffstat (limited to 'sapi/cgi/cgi_main.c')
| -rw-r--r-- | sapi/cgi/cgi_main.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index 340baeae4f..2580a14b27 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -271,7 +271,7 @@ static void sapi_cgibin_flush(void *server_context) #if PHP_FASTCGI if (!FCGX_IsCGI()) { FCGX_Request *request = (FCGX_Request *)server_context; - if(!request || FCGX_FFlush( request->out ) == -1 ) { + if (!parent && (!request || FCGX_FFlush(request->out) == -1)) { php_handle_aborted_connection(); } return; |
