* Check running

git-svn-id: trunk@26707 -
This commit is contained in:
michael 2014-02-07 13:25:13 +00:00
parent 8a4e0e6e84
commit 2a809969d3

View File

@ -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;