Gio.SubprocessFlags
Flags to define the behaviour of a Gio.Subprocess.
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 Gio.SubprocessFlags.stdout_pipe and Gio.SubprocessFlags.stdout_silence.
Since 2.40
- SubprocessFlags.NONE
No flags.
- SubprocessFlags.STDIN_PIPE
create a pipe for the stdin of the spawned process that can be accessed with Gio.Subprocess.prototype.get_stdin_pipe.
- SubprocessFlags.STDIN_INHERIT
stdin is inherited from the calling process.
- SubprocessFlags.STDOUT_PIPE
create a pipe for the stdout of the spawned process that can be accessed with Gio.Subprocess.prototype.get_stdout_pipe.
- SubprocessFlags.STDOUT_SILENCE
silence the stdout of the spawned process (ie: redirect to /dev/null).
- SubprocessFlags.STDERR_PIPE
create a pipe for the stderr of the spawned process that can be accessed with Gio.Subprocess.prototype.get_stderr_pipe.
- SubprocessFlags.STDERR_SILENCE
silence the stderr of the spawned process (ie: redirect to /dev/null).
- SubprocessFlags.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.
- SubprocessFlags.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).