Differences From Artifact [5b951c5966]:
- File
src/OFProcess.m
— part of check-in
[62e2de30b9]
at
2015-02-16 08:39:17
on branch trunk
— Explicitly pass errno to exceptions
The old behaviour where the exception would access errno directly on
creation of the exception was very fragile. The two main problems with
it were that sometimes it would pick up an errno even though none had
been set and in other cases that when the exception was created errno
had already been overridden.This also greatly increases errno handling on Win32, especially in
conjunction with sockets. It can still be improved further, though. (user: js, size: 14203) [annotate] [blame] [check-ins using]
To Artifact [30416b7510]:
- File src/OFProcess.m — part of check-in [87b1318a27] at 2015-08-09 14:59:56 on branch trunk — OFProcess: Use vfork() instead of fork() (user: js, size: 14204) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
195 196 197 198 199 200 201 | @throw [OFInitializationFailedException exceptionWithClass: [self class]]; } @finally { posix_spawn_file_actions_destroy(&actions); posix_spawnattr_destroy(&attr); } # else | | | 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 | @throw [OFInitializationFailedException exceptionWithClass: [self class]]; } @finally { posix_spawn_file_actions_destroy(&actions); posix_spawnattr_destroy(&attr); } # else if ((_pid = vfork()) == 0) { environ = env; close(_readPipe[0]); close(_writePipe[1]); dup2(_writePipe[0], 0); dup2(_readPipe[1], 1); execvp(path, argv); |
︙ | ︙ |