Browse Source

* Patch from Mantis 14709

git-svn-id: trunk@14020 -
marco 15 years ago
parent
commit
5c8ee686cb
1 changed files with 2 additions and 1 deletions
  1. 2 1
      packages/fcl-process/src/unix/process.inc

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

@@ -371,7 +371,8 @@ Var
   R : Dword;
   R : Dword;
 
 
 begin
 begin
-  fexitcode:=waitprocess(handle);
+  if FRunning then
+    fexitcode:=waitprocess(handle);
   Result:=(fexitcode>=0);
   Result:=(fexitcode>=0);
   FRunning:=False;
   FRunning:=False;
 end;
 end;