ObjFW  Check-in [e6d96d6fbc]

Overview
Comment:OFStream: Only ignore SIGPIPE if it is defined
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | 0.90
Files: files | file ages | folders
SHA3-256: e6d96d6fbc32b6c991c5c5a687e6038813cf9243c4a03e66b302c1b9bb39a287
User & Date: js on 2017-07-29 20:29:34
Other Links: branch diff | manifest | tags
Context
2017-07-30
17:25
Fix OFKernelEventObserver on Wii check-in: a3e2130ab4 user: js tags: 0.90
2017-07-29
20:29
OFStream: Only ignore SIGPIPE if it is defined check-in: e6d96d6fbc user: js tags: 0.90
20:23
Include sys/types.h before using ssize_t check-in: 0cfb61a41c user: js tags: 0.90
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