ObjFW  Check-in [497656da0f]

Overview
Comment:OFStream: Only ignore SIGPIPE if it is defined
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA3-256: 497656da0fb3bd98e01e5413dbfd90a63467dd398526e8e58e7f87a5083b08db
User & Date: js on 2017-07-29 20:29:55
Other Links: manifest | tags
Context
2017-07-30
17:25
Fix OFKernelEventObserver on Wii check-in: 19ecfaf384 user: js tags: trunk
2017-07-29
20:29
OFStream: Only ignore SIGPIPE if it is defined check-in: 497656da0f user: js tags: trunk
20:23
Include sys/types.h before using ssize_t check-in: 062722e0b3 user: js tags: trunk
Changes

Modified src/OFStream.m from [d30563e398] to [e48fbb2fa9].

54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#import "of_asprintf.h"

#define MIN_READ_SIZE 512

@implementation OFStream
@synthesize of_waitingForDelimiter = _waitingForDelimiter;

#if !defined(OF_WINDOWS) && !defined(OF_MORPHOS)
+ (void)initialize
{
	if (self == [OFStream class])
		signal(SIGPIPE, SIG_IGN);
}
#endif








|







54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
#import "of_asprintf.h"

#define MIN_READ_SIZE 512

@implementation OFStream
@synthesize of_waitingForDelimiter = _waitingForDelimiter;

#if defined(SIGPIPE) && defined(SIG_IGN)
+ (void)initialize
{
	if (self == [OFStream class])
		signal(SIGPIPE, SIG_IGN);
}
#endif