* fixed unix version of tprocess.waitonexit (use unix.waitprocess so all

corner cases are properly handled) (mantis #11797)

git-svn-id: trunk@12923 -
This commit is contained in:
Jonas Maebe 2009-03-19 20:14:57 +00:00
parent 3844b9b325
commit 7fa0b94f36

View File

@ -351,10 +351,8 @@ Var
R : Dword;
begin
R:=fpWaitPid(Handle,pcint(@FExitCode),0);
Result:=(R=Handle);
If Result then
FExitCode:=WExitStatus(FExitCode);
fexitcode:=waitprocess(handle);
Result:=(fexitcode>=0);
FRunning:=False;
end;