[fpc-devel]TProcess.WaitOnExit on linux doesn't wait

Vincent Snijders vsnijders at quicknet.nl
Wed Sep 1 23:36:43 CEST 2004

Vincent Snijders wrote:

> Hi,
> The TProcess.WaitOnExit function doesn't wait, but returns immediately.
> I think the problem is in this line:
> Result:=fpWaitPid(Handle, at FExitCode,WNOHANG);
> In the old version 0 was passed instead of WNOHANG.
Attached patch fixes this problem.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: process.inc.patch.gz
Type: application/x-gzip
Size: 398 bytes
Desc: not available
URL: <http://lists.freepascal.org/pipermail/fpc-devel/attachments/20040901/ef487f25/attachment.bin>

More information about the fpc-devel mailing list