|
Boost : |
Subject: Re: [boost] [gsoc] Boost.Process done
From: Ilya Sokolov (ilyasokol_at_[hidden])
Date: 2010-08-23 07:34:05
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()?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk