浏览代码

* Check running

git-svn-id: trunk@26707 -
michael 12 年之前
父节点
当前提交
2a809969d3
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/fcl-process/src/unix/process.inc

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

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