mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-17 20:49:09 +02:00
* fix for popen brokenness
git-svn-id: trunk@4894 -
This commit is contained in:
parent
9288a2f76d
commit
94e0b66d0a
@ -828,7 +828,7 @@ begin
|
|||||||
close(pipo);
|
close(pipo);
|
||||||
{$endif USE_VFORK}
|
{$endif USE_VFORK}
|
||||||
end;
|
end;
|
||||||
if ret=1 then
|
if ret=-1 then
|
||||||
fpexit(127);
|
fpexit(127);
|
||||||
end;
|
end;
|
||||||
{$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}
|
{$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}
|
||||||
@ -943,7 +943,7 @@ begin
|
|||||||
close(pipo);
|
close(pipo);
|
||||||
{$endif USE_VFORK}
|
{$endif USE_VFORK}
|
||||||
end;
|
end;
|
||||||
if ret=1 then
|
if ret=-1 then
|
||||||
fpexit(127);
|
fpexit(127);
|
||||||
end;
|
end;
|
||||||
{$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}
|
{$if defined(FPC_USE_FPEXEC) and not defined(USE_VFORK)}
|
||||||
|
Loading…
Reference in New Issue
Block a user