Re: I'm done with O_CLOEXEC



On Sat, 21 Mar 2015 13:47:04 +0000
Florian Müllner <fmuellner gnome org> wrote:
On Sat, Mar 21, 2015 at 12:31 PM Chris Vine
<chris cvine freeserve co uk> 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.

Chris


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]