
On Mon, 23 Aug 2010 13:34:05 +0200, Ilya Sokolov <ilyasokol@gmail.com> wrote:
On 22.08.2010 2:13, Boris Schaeling wrote: [...]
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()?
Let's say you want the list of files in the current work directory. While system("dir") will execute the command it is obviously useless. With boost::process::shell("dir") you can read the list of files through a stream though. In a way boost::process::shell() is nothing more than a convenient shortcut for boost::process::create_child("cmd.exe"...). Boris