Differences From Artifact [9948874fbd]:
- File
src/platform/posix/OFProcess.m
— part of check-in
[67df0aa735]
at
2020-04-24 22:42:55
on branch trunk
— OFProcess: Initialize to invalid handles first
The reason for this is that if anything fails during init, close is
called on dealloc and we want it to be in a sane state for that. (user: js, size: 8873) [annotate] [blame] [check-ins using]
To Artifact [a1d2451059]:
- File src/platform/posix/OFProcess.m — part of check-in [bdf82f10b4] at 2020-04-26 10:42:17 on branch trunk — Add -[OFProcess waitForTermination] (user: js, size: 9083) [annotate] [blame] [check-ins using] [more...]
︙ | ︙ | |||
373 374 375 376 377 378 379 380 | } _pid = -1; _readPipe[0] = -1; [super close]; } @end | > > > > > > > > > > > > > | 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 | } _pid = -1; _readPipe[0] = -1; [super close]; } - (int)waitForTermination { if (_readPipe[0] == -1) @throw [OFNotOpenException exceptionWithObject: self]; if (_pid != -1) { waitpid(_pid, &_status, 0); _pid = -1; } return WEXITSTATUS(_status); } @end |