소스 검색

* fix for popen brokenness

git-svn-id: trunk@4894 -
marco 19 년 전
부모
커밋
94e0b66d0a
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      rtl/unix/unix.pp

+ 2 - 2
rtl/unix/unix.pp

@@ -828,7 +828,7 @@ begin
             close(pipo);
 {$endif USE_VFORK}
           end;
-        if ret=1 then
+        if ret=-1 then
          fpexit(127);
       end;
      {$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}
@@ -943,7 +943,7 @@ begin
             close(pipo);
 {$endif USE_VFORK}
           end;
-        if ret=1 then
+        if ret=-1 then
          fpexit(127);
       end;
      {$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}