Boost logo

Boost :

Subject: Re: [boost] [gsoc] Boost.Process done
From: Boris Schaeling (boris_at_[hidden])
Date: 2010-08-19 16:40:14


On Thu, 19 Aug 2010 22:34:36 +0200, Ilya Sokolov <ilyasokol_at_[hidden]>
wrote:

> Boris Schaeling wrote (in the attached file):
> > File descriptors must be closed after context is instantiated as the
> > context constructor uses the behavior inherit which tries to dup()
> > stdin, stdout and stderr.
>
> Which makes me nervous (sorry) as it is superfluous in 90% of cases.

Currently the standard constructor of the context class reproduces
standard behavior on POSIX systems (file descriptors are inherited). Do
you think this should be changed? Or it would be fine to provide another
constructor which expects up to three parameters to configure stdin,
stdout and stderr?

Boris


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