Module: Gio::SubprocessFlags

Defined in:
(unknown)

Constant Summary collapse

NONE =

No flags.

0 or :none
STDIN_PIPE =

create a pipe for the stdin of the

spawned process that can be accessed with
g_subprocess_get_stdin_pipe().
1 or :stdin_pipe
STDIN_INHERIT =

stdin is inherited from the

calling process.
2 or :stdin_inherit
STDOUT_PIPE =

create a pipe for the stdout of the

spawned process that can be accessed with
g_subprocess_get_stdout_pipe().
4 or :stdout_pipe
STDOUT_SILENCE =

silence the stdout of the spawned

process (ie: redirect to `/dev/null`).
8 or :stdout_silence
STDERR_PIPE =

create a pipe for the stderr of the

spawned process that can be accessed with
g_subprocess_get_stderr_pipe().
16 or :stderr_pipe
STDERR_SILENCE =

silence the stderr of the spawned

process (ie: redirect to `/dev/null`).
32 or :stderr_silence
STDERR_MERGE =

merge 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.
64 or :stderr_merge
INHERIT_FDS =

spawned 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).
128 or :inherit_fds