]> granicus.if.org Git - php/commitdiff
Fixed bug #26758 (FastCGI exits immediately with status 255).
authorIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 00:29:46 +0000 (00:29 +0000)
committerIlia Alshanetsky <iliaa@php.net>
Tue, 10 Feb 2004 00:29:46 +0000 (00:29 +0000)
sapi/cgi/cgi_main.c

index 340baeae4f50b1fb6b6978e2dc878b51e9a2bfcb..2580a14b277f4c97c001c8d12023832e961826c8 100644 (file)
@@ -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;