Boost logo

Boost :

Subject: Re: [boost] [boost.process] 0.6 Alpha
From: Klaim - Joël Lamotte (mjklaim_at_[hidden])
Date: 2016-06-06 10:48:36


On 6 June 2016 at 13:02, Klemens Morgenstern <klemens.morgenstern_at_[hidden]>
wrote:

>
> Am 06.06.2016 um 12:49 schrieb Klaim - Joël Lamotte:
>
>>
>>> I don't see any way in which it is not possible to make it portable. I
>> can
>> provide example if you want? It's clumsy but it shows how we do it. (see
>> below)
>>
> Please, that would help me very much. Also for the child process handling,
> regarding the this_process namespace.

>
>
>> I think it's easy enough, you can get the pid (or even gid, if you use a
>>> group) and implement that in two lines. On windows you can get the HWND
>>> as
>>> an std::intptr_t through a pipe, though that's a bit more code.
>>>
>>>
>>> Exactly. Which is why I think such function would be a good candidate for
>> this library, although it's not a show stopper to me.
>>
> Well if there is a portable way, even if it's a hack, I'd look into adding
> it.
>
>
OK let me gather our open-source and closed source code in one example and
I'll send it to you privately.
Our solution is not perfect but it seems to work well.

Joël Lamotte


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