mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-20 13:09:38 +01:00
* Check running
git-svn-id: trunk@26707 -
This commit is contained in:
parent
8a4e0e6e84
commit
2a809969d3
@ -42,7 +42,7 @@ end;
|
|||||||
Function TProcess.GetExitCode : Integer;
|
Function TProcess.GetExitCode : Integer;
|
||||||
|
|
||||||
begin
|
begin
|
||||||
if wifexited(FExitCode) then
|
if (Not Running) and wifexited(FExitCode) then
|
||||||
Result:=wexitstatus(FExitCode)
|
Result:=wexitstatus(FExitCode)
|
||||||
else
|
else
|
||||||
Result:=0;
|
Result:=0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user