Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2010-08-24 02:43:46


On 23.08.2010 23:48, Boris Schaeling wrote:
> On Mon, 23 Aug 2010 13:44:31 +0200, Ilya Sokolov <ilyasokol_at_[hidden]>
> wrote:
>
>> On 15.08.2010 16:03, Boris Schaeling wrote:
>>> * For the first time there is full support for synchronous and
>>> asynchronous operations.
>>
>> Do you really need to call ConnectNamedPipe() at stream_behavior.hpp,
>> line 258? AFAICS, at that time the client's end of pipe is opened
>> already, so there is no need to wait for it.
>
> If I remember correctly ConnectNamedPipe() is called to make sure that
> both ends are connected before the constructor of
> boost::process::behavior::named_pipe returns. As CreateFileA() is called
> with FILE_FLAG_OVERLAPPED this function could return immediately

It couldn't because it returns "... an open handle to the specified
file, device, named pipe, or mail slot ..."

> and the
> program could continue without the parent end already open.
>
> Boris


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