Web lists-archives.com

Re: I'm done with O_CLOEXEC

On Sat, 21 Mar 2015 13:47:04 +0000
Florian Müllner <fmuellner@xxxxxxxxx> wrote:
> On Sat, Mar 21, 2015 at 12:31 PM Chris Vine
> <chris@xxxxxxxxxxxxxxxxxxxxx> wrote:
> >
> > Further, there are cases where porting to GSubprocess does not
> > actually do the job easily because (as I understand it)
> > GSubprocessFlags can be set to either close all descriptors on exec
> > other than those for stdin, stdout and stderr, or not close any
> > descriptors on exec.
> >
> Isn't that case covered by g_subprocess_launcher_take_fd()?

It looks as if it is.  That's good to know.

Given the restrictions on what you can do between a fork and an exec
in a multi-threaded program (and gio is multi-threaded) the
implementation of GSubprocess looks as if it must be quite clever.

gtk-devel-list mailing list