Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-08-23 15:48:33


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 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