ObjFW  Diff

Differences From Artifact [9948874fbd]:

To Artifact [a1d2451059]:


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