Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2010-08-19 15:17:08


Boris Schaeling wrote:
> On Wed, 18 Aug 2010 11:23:56 +0200, Ilya Sokolov <ilyasokol_at_[hidden]>
> wrote:
>
>> [...]Now after line 3 the child process has the following fds:
>> 0 closed
>> 1 wend of pipe created for stdout
>> 2 wend of pipe created for stdout (!)
>> 3 closed
>
> Not sure why you think so? I've attached the program I used to try to
> reproduce the behavior but it works fine. Maybe you can update it if you
> think there is a problem?

Could you swap these lines?

ctx.stdout_behavior = bpb::pipe::create(bpb::pipe::output_stream);
ctx.stderr_behavior = bpb::pipe::create(bpb::pipe::output_stream);


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk