diff options
author | Thies C. Arntzen <thies@php.net> | 2000-04-20 07:35:22 +0000 |
---|---|---|
committer | Thies C. Arntzen <thies@php.net> | 2000-04-20 07:35:22 +0000 |
commit | 0540bbe5af1aee220085cca0d2727f60fd417cef (patch) | |
tree | 87d28b6ef797f07e3c3d0c45b0798bf1b44d5019 /sapi | |
parent | c1c8422dbf0aa165e2519b7cb76c67e7259a5b4f (diff) | |
download | php-git-0540bbe5af1aee220085cca0d2727f60fd417cef.tar.gz |
improve fix
Diffstat (limited to 'sapi')
-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 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! |