Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-03

TProcess question

2 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Unknown author
to Marc Weustink: Maybe am I missing something, but when looking at the TProcess.Execute code (linux): if…
Marc Weustink wrote 20 lines
Hi, Maybe am I missing something, but when looking at the TProcess.Execute code (linux): if poStdErrToOutPut in FCreateOptions then CreatePipeStreams (FParentErrorStream,FChildErrorStream) else begin FChildErrorStream:=FChildOutPutStream; FParentErrorStream:=FParentInputStream; end; From process.txt: poStderrToOutPut If This option is included, then the error desciptor is redirected to the standard output director, i.e. all output goes to the standard output. My question: Shouldn't the if statement be the other way around ?

Ahem...

You are of course right. My apologies, I will fix it.

Michael.

Reply by email

Marc Weustink

Hi,
Maybe am I missing something, but when looking at the TProcess.Execute code (linux):

    if poStdErrToOutPut in FCreateOptions
    then
      CreatePipeStreams (FParentErrorStream,FChildErrorStream)
    else begin
      FChildErrorStream:=FChildOutPutStream;
      FParentErrorStream:=FParentInputStream;
    end;

From process.txt:

poStderrToOutPut
If This option is included, then the error desciptor is redirected to the standard output director, i.e. all output goes to the standard output.

My question: Shouldn't the if statement be the other way around ?

Marc

Reply by email