mirror of
https://github.com/gnustep/libs-base.git
synced 2025-05-30 08:21:25 +00:00
New SIGPIPE behavior
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@17903 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
5c31ef0e4b
commit
39337dbf7d
9 changed files with 435 additions and 444 deletions
|
@ -40,12 +40,6 @@
|
|||
#include "Foundation/NSPathUtilities.h"
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#ifdef HAVE_SYS_SIGNAL_H
|
||||
#include <sys/signal.h>
|
||||
#endif
|
||||
#ifdef HAVE_SIGNAL_H
|
||||
#include <signal.h>
|
||||
#endif
|
||||
#ifdef HAVE_UNISTD_H
|
||||
#include <unistd.h> /* for gethostname() */
|
||||
#endif
|
||||
|
@ -367,17 +361,6 @@ static Class runLoopClass;
|
|||
|
||||
wVersionRequested = MAKEWORD(2, 0);
|
||||
WSAStartup(wVersionRequested, &wsaData);
|
||||
#else
|
||||
void (*handler)(int);
|
||||
/*
|
||||
* If SIGPIPE is not handled or ignored, we will abort on any attempt
|
||||
* to write to a pipe/socket that has been closed by the other end!
|
||||
*/
|
||||
handler = signal(SIGPIPE, SIG_IGN);
|
||||
if (handler != SIG_DFL)
|
||||
{
|
||||
signal(SIGPIPE, handler);
|
||||
}
|
||||
#endif
|
||||
mutableArrayClass = [NSMutableArray class];
|
||||
mutableDataClass = [NSMutableData class];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue