mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-20 06:49:33 +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;
|
||||
|
||||
begin
|
||||
if wifexited(FExitCode) then
|
||||
if (Not Running) and wifexited(FExitCode) then
|
||||
Result:=wexitstatus(FExitCode)
|
||||
else
|
||||
Result:=0;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user