$include_dir="/home/hyper-archives/boost/include"; include("$include_dir/msg-header.inc") ?>
Subject: Re: [boost] Boost.Process 0.5: Another update/potential candidate for an official library
From: Yakov Galka (ybungalobill_at_[hidden])
Date: 2012-11-14 02:23:06
On Wed, Nov 14, 2012 at 9:15 AM, Yakov Galka <ybungalobill_at_[hidden]> wrote:
> [...]
> SetHandleInformation(h, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT);
> // 1
> CreateProcess(...)
>
Sorry, the critical section is broader. it should be :
SetHandleInformation(h, HANDLE_FLAG_INHERIT, HANDLE_FLAG_INHERIT);
CreateProcess(...);
CloseHandle(h);
and the problem will be triggered if another CreateProcess gets called
anywhere between SetHandleInformation and CloseHandle.
Also in my original post the mark // 2 had to be on the bind_stdout(sink)
line.
-- Yakov