mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-13 09:59:25 +02:00
* Properly handle stdout for redir
This commit is contained in:
parent
84e230f6e5
commit
d45556666e
@ -810,7 +810,10 @@ begin
|
||||
P.CommandLine:=Progname + ' ' + ComLine;
|
||||
P.InputDescriptor.FileName:=RedirStdIn;
|
||||
P.OutputDescriptor.FileName:=RedirStdOut;
|
||||
P.ErrorDescriptor.FileName:=RedirStdErr;
|
||||
if RedirStdErr='stdout' then
|
||||
P.Options:=P.options+[poStdErrToOutput]
|
||||
else
|
||||
P.ErrorDescriptor.FileName:=RedirStdErr;
|
||||
P.Execute;
|
||||
Result:=P.WaitOnExit(max_count);
|
||||
if Result then
|
||||
|
Loading…
Reference in New Issue
Block a user