GLib.SpawnFlags

Flags passed to GLib.spawn_sync, GLib.spawn_async and GLib.spawn_async_with_pipes.

SpawnFlags.DEFAULT

no flags, default behaviour

SpawnFlags.LEAVE_DESCRIPTORS_OPEN

the parent's open file descriptors will be inherited by the child; otherwise all descriptors except stdin/stdout/stderr will be closed before calling exec() in the child.

SpawnFlags.DO_NOT_REAP_CHILD

the child will not be automatically reaped; you must use GLib.child_watch_add yourself (or call waitpid() or handle <literal>SIGCHLD</literal> yourself), or the child will become a zombie.

SpawnFlags.SEARCH_PATH

<literal>argv[0]</literal> need not be an absolute path, it will be looked for in the user's <envar>PATH</envar>.

SpawnFlags.STDOUT_TO_DEV_NULL

the child's standard output will be discarded, instead of going to the same location as the parent's standard output.

SpawnFlags.STDERR_TO_DEV_NULL

the child's standard error will be discarded.

SpawnFlags.CHILD_INHERITS_STDIN

the child will inherit the parent's standard input (by default, the child's standard input is attached to <filename>/dev/null</filename>).

SpawnFlags.FILE_AND_ARGV_ZERO

the first element of <literal>argv</literal> is the file to execute, while the remaining elements are the actual argument vector to pass to the file. Normally GLib.spawn_async_with_pipes uses <literal>argv[0]</literal> as the file to execute, and passes all of <literal>argv</literal> to the child.

SpawnFlags.SEARCH_PATH_FROM_ENVP

if <literal>argv[0]</literal> is not an abolute path, it will be looked for in the <envar>PATH</envar> from the passed child environment. Since: 2.34

SpawnFlags.CLOEXEC_PIPES

create all pipes with the O_CLOEXEC flag set. Since: 2.40.