From: Thies C. Arntzen Date: Thu, 20 Apr 2000 07:35:22 +0000 (+0000) Subject: improve fix X-Git-Tag: php-4.0RC2~307 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=0540bbe5af1aee220085cca0d2727f60fd417cef;p=php improve fix --- diff --git a/sapi/cgi/cgi_main.c b/sapi/cgi/cgi_main.c index af06bfb65b..7786315fd4 100644 --- a/sapi/cgi/cgi_main.c +++ b/sapi/cgi/cgi_main.c @@ -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!