Flags to define the behaviour of a
<GSubprocess>.
Note that the default for stdin is to redirect from /dev/null.
For stdout and stderr the default are for them to inherit the
corresponding descriptor from the calling process.
Note that it is a programmer error to mix ’incompatible’ flags. For
example, you may not request both
stdout-pipe and
stdout-silence.
noneNo flags.
stdin-pipecreate a pipe for the stdin of the spawned process that can be accessed
with subprocess:get-stdin-pipe.
stdin-inheritstdin is inherited from the calling process.
stdout-pipecreate a pipe for the stdout of the spawned process that can be accessed
with subprocess:get-stdout-pipe.
stdout-silencesilence the stdout of the spawned process (ie: redirect to
/dev/null).
stderr-pipecreate a pipe for the stderr of the spawned process that can be accessed
with subprocess:get-stderr-pipe.
stderr-silencesilence the stderr of the spawned process (ie: redirect to
/dev/null).
stderr-mergemerge the stderr of the spawned process with whatever the stdout happens to be. This is a good way of directing both streams to a common log file, for example.
inherit-fdsspawned processes will inherit the file descriptors of their parent, unless those descriptors have been explicitly marked as close-on-exec. This flag has no effect over the "standard" file descriptors (stdin, stdout, stderr).
search-path-from-envpif path searching is needed when spawning the subprocess, use the
PATH in the launcher environment. (Since: 2.72)