|
Boost : |
Subject: Re: [boost] Boost.Process 0.5 released
From: Florian Sowade (lists_at_[hidden])
Date: 2012-08-21 05:39:51
Hi,
On 21.08.2012 00:11, Boris Schaeling wrote:
> On Sat, 18 Aug 2012 23:54:24 +0200, Roland Bock <rbock_at_[hidden]> wrote:
>
> Hi Roland,
>
>> [...]But things like wait_for_exit seem strange to me: If the library
>> takes
>> care of the forking and handles setting up pipes in such a nice way, why
>> should the user of the library be bothered with the different ways of
>> interpreting the exit information (unless he really, really wants to)?
>
> can you show me some sample code how you'd like to interpret the exit code?
what about an exit_code class which simply encapsulates WIFEXITED and
WEXITSTATUS on Unix and does nothing on windows, like the one attached.
I think this would be enough for 95% of all users. And from my point of
view the exited() member on windows has sane behavior, too.
Regards,
Florian Sowade
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk