mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-20 04:59:26 +02:00
* WaitOnExit now returns a boolean
git-svn-id: trunk@5577 -
This commit is contained in:
parent
e4fb3f71d3
commit
8fa80c73d8
@ -213,11 +213,15 @@ begin
|
||||
WaitOnExit;
|
||||
end;
|
||||
|
||||
Function TProcess.WaitOnExit : Dword;
|
||||
Function TProcess.WaitOnExit : Boolean;
|
||||
|
||||
Var
|
||||
R : DWord;
|
||||
|
||||
begin
|
||||
Result:=WaitForSingleObject (FProcessHandle,Infinite);
|
||||
If Result<>Wait_Failed then
|
||||
R:=WaitForSingleObject (FProcessHandle,Infinite);
|
||||
Result:=R<>Wait_Failed;
|
||||
If R then
|
||||
GetExitStatus;
|
||||
FRunning:=False;
|
||||
end;
|
||||
|
Loading…
Reference in New Issue
Block a user