]> granicus.if.org Git - php/commitdiff
improve fix
authorThies C. Arntzen <thies@php.net>
Thu, 20 Apr 2000 07:35:22 +0000 (07:35 +0000)
committerThies C. Arntzen <thies@php.net>
Thu, 20 Apr 2000 07:35:22 +0000 (07:35 +0000)
sapi/cgi/cgi_main.c

index af06bfb65b89a3bb433485e69348b72e50e8ee0f..7786315fd4f1a314e98efe6246a6376257f52750 100644 (file)
@@ -338,8 +338,8 @@ int main(int argc, char *argv[])
 #endif
 
 
-#ifndef WIN32                           /* SIGPIPE is unknown on WIN32 platforms fmk@swwwing.com */
 #if HAVE_SIGNAL_H
+#if defined(SIGPIPE) && defined(SIG_IGN)
        signal(SIGPIPE,SIG_IGN); /* ignore SIGPIPE in standalone mode so that sockets created via
                                                                fsockopen() don't kill PHP if the remote site closes it. 
                                                                in apache|apxs mode apache does that for us!