mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-29 09:00:30 +02:00
* 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:
parent
3844b9b325
commit
7fa0b94f36
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user