Browse Source

* Check running

git-svn-id: trunk@26707 -
michael 11 năm trước cách đây
mục cha
commit
2a809969d3

+ 1 - 1
packages/fcl-process/src/unix/process.inc

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