Differences From Artifact [3b625f7cf5]:
- File src/OFStream.m — part of check-in [da6b3d26cb] at 2011-01-01 20:19:54 on branch trunk — Change license. (user: js, size: 13795) [annotate] [blame] [check-ins using]
To Artifact [f885e71d37]:
- File
src/OFStream.m
— part of check-in
[1404d33024]
at
2011-01-08 15:57:35
on branch trunk
— Ignore SIGPIPE when using OFStream.
SIGPIPE is quite useless and contraproductive as we throw an
OFWriteFailedException anyway. (user: js, size: 13954) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 | #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <fcntl.h> #import "OFStream.h" #import "OFString.h" #import "OFDataArray.h" #import "OFExceptions.h" #import "macros.h" #import "asprintf.h" @implementation OFStream - init { if (isa == [OFStream class]) { Class c = isa; [self release]; @throw [OFNotImplementedException newWithClass: c selector: _cmd]; | > > > > > > > > > > > > > > | 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 | #include <stdarg.h> #include <stdio.h> #include <stdlib.h> #include <string.h> #include <assert.h> #include <fcntl.h> #ifndef _WIN32 # include <signal.h> #endif #import "OFStream.h" #import "OFString.h" #import "OFDataArray.h" #import "OFExceptions.h" #import "macros.h" #import "asprintf.h" @implementation OFStream #ifndef _WIN32 + (void)initialize { if (self != [OFStream class]) return; signal(SIGPIPE, SIG_IGN); } #endif - init { if (isa == [OFStream class]) { Class c = isa; [self release]; @throw [OFNotImplementedException newWithClass: c selector: _cmd]; |
︙ | ︙ |