mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-27 23:19:21 +02:00
* Extra check for poStdErrToStdOut
This commit is contained in:
parent
58f9dc27ea
commit
3165409337
@ -347,7 +347,8 @@ Var
|
||||
begin
|
||||
FDescriptors[phtInput].PrepareHandles;
|
||||
FDescriptors[phtOutput].PrepareHandles;
|
||||
FDescriptors[phtError].PrepareHandles;
|
||||
if not (poStderrToOutPut in Options) then
|
||||
FDescriptors[phtError].PrepareHandles;
|
||||
Try
|
||||
if FEnvironment.Count<>0 then
|
||||
FEnv:=StringsToPcharList(FEnvironment)
|
||||
@ -462,7 +463,8 @@ begin
|
||||
// Writeln(system.StdErr,'fork closing our handles');
|
||||
FDescriptors[phtInput].CloseTheirHandle;
|
||||
FDescriptors[phtOutput].CloseTheirHandle;
|
||||
FDescriptors[phtError].CloseTheirHandle;
|
||||
if not (poStderrToOutPut in Options) then
|
||||
FDescriptors[phtError].CloseTheirHandle;
|
||||
end;
|
||||
FRunning:=True;
|
||||
if not (csDesigning in ComponentState) and // This would hang the IDE !
|
||||
|
Loading…
Reference in New Issue
Block a user