Differences From Artifact [75eaa2091a]:
- File
src/platform/windows/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: 8581) [annotate] [blame] [check-ins using]
To Artifact [4f8503117f]:
- File src/platform/windows/OFProcess.m — part of check-in [bdf82f10b4] at 2020-04-26 10:42:17 on branch trunk — Add -[OFProcess waitForTermination] (user: js, size: 8989) [annotate] [blame] [check-ins using]
︙ | |||
344 345 346 347 348 349 350 351 | 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 | + + + + + + + + + + + + + + + + + + + + + + | } _process = INVALID_HANDLE_VALUE; _readPipe[0] = NULL; [super close]; } - (int)waitForTermination { if (_readPipe[0] == NULL) @throw [OFNotOpenException exceptionWithObject: self]; if (_process != INVALID_HANDLE_VALUE) { DWORD exitCode; WaitForSingleObject(_process, INFINITE); if (GetExitCodeProcess(_process, &exitCode)) _status = exitCode; else _status = GetLastError(); CloseHandle(_process); _process = INVALID_HANDLE_VALUE; } return _status; } @end |