Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2010-08-23 07:48:36


On 23.08.2010 15:34, Ilya Sokolov wrote:
> On 22.08.2010 2:13, Boris Schaeling wrote:
>> On Thu, 19 Aug 2010 23:05:15 +0200, Ilya Sokolov <ilyasokol_at_[hidden]>
>> wrote:
>>
>>> boost::process::shell must do signal handling. See [1] and [2].
>>> On windows SetConsoleCtrlHandler() could be used for the same effect.
>>>
>>> [1] 10.18 system Function
>>> W. Richard Stevens, Stephen A. Rago.
>>> Advanced Programming in the UNIX® Environment, Second Edition
>>> http://www.apuebook.com/
>>>
>>> [2] Specification of the system() function.
>>> http://www.opengroup.org/onlinepubs/000095399/functions/system.html
>>
>> I read the specification but I'm not sure why it applies to
>> boost::proces::shell(). For example boost::process::shell() does not
>> wait for the child process to exit - why should SIGINT then be ignored?
>
> Ignore SIGINT until wait() is called.
>
>> After all boost::process::shell() should not be a replacement for
>> system()?
>
> Then what is the purpose of boost::process::shell()?

Forgive me if I am looking to aggressive (. It is a fair question.


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