Differences From Artifact [a1d37f278e]:
- File
src/OFProcess.m
— part of check-in
[02ab9aa8a9]
at
2011-10-05 23:26:08
on branch trunk
— Add OFProcess.
Win32 implementation following later. (user: js, size: 2901) [annotate] [blame] [check-ins using]
To Artifact [12b36ce01a]:
- File src/OFProcess.m — part of check-in [20ba008347] at 2011-10-06 00:10:17 on branch trunk — OFProcess: Make sure that we don't leave zombies behind. (user: js, size: 2915) [annotate] [blame] [check-ins using]
1 2 3 4 5 6 7 8 9 10 11 12 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 | + + | #include "config.h" #include <alloca.h> #include <unistd.h> #include <sys/wait.h> #import "OFProcess.h" #import "OFString.h" #import "OFArray.h" #import "OFInitializationFailedException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" |
︙ | |||
28 29 30 31 32 33 34 | 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | - + | self = [super init]; @try { if (pipe(readPipe) != 0 || pipe(writePipe) != 0) @throw [OFInitializationFailedException exceptionWithClass: isa]; |
︙ | |||
106 107 108 109 110 111 112 | 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | - - + - - + + + + | @throw [OFWriteFailedException exceptionWithClass: isa stream: self requestedLength: length]; } - (void)dealloc { |