SubprocessFlags
Description:
[ CCode ( cprefix = "G_SUBPROCESS_FLAGS_" , type_id = "g_subprocess_flags_get_type ()" ) ]
[ Flags ]
[ Version ( since = "2.40" ) ]
public enum SubprocessFlags
Flags to define the behaviour of a 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
g_subprocess_flags_stdout_pipe and g_subprocess_flags_stdout_silence.
Content:
Enum values:
- INHERIT_FDS - spawned processes
will inherit the file descriptors of their parent, unless those descriptors have been explicitly marked as close-on-exec.
- NONE - No flags.
- SEARCH_PATH_FROM_ENVP -
if path searching is needed when spawning the subprocess, use the `PATH` in the launcher environment.
- STDERR_MERGE - merge the stderr
of the spawned process with whatever the stdout happens to be.
- STDERR_PIPE - create a pipe for
the stderr of the spawned process that can be accessed with
get_stderr_pipe.
- STDERR_SILENCE - silence the
stderr of the spawned process (ie: redirect to `/dev/null`).
- STDIN_INHERIT - stdin is
inherited from the calling process.
- STDIN_PIPE - create a pipe for the
stdin of the spawned process that can be accessed with get_stdin_pipe
.
- STDOUT_PIPE - create a pipe for
the stdout of the spawned process that can be accessed with
get_stdout_pipe.
- STDOUT_SILENCE - silence the
stdout of the spawned process (ie: redirect to `/dev/null`).