Value | Meaning |
---|---|
Default0 | no flags, default behaviour |
LeaveDescriptorsOpen1 | the parent's open file descriptors will be inherited by the child; otherwise all descriptors except stdin, stdout and stderr will be closed before calling exec() in the child. |
DoNotReapChild2 | the child will not be automatically reaped; you must use glib.global.childWatchAdd yourself (or call waitpid() or handle SIGCHLD yourself), or the child will become a zombie. |
SearchPath4 | argv[0] need not be an absolute path, it will be looked for in the user's PATH. |
StdoutToDevNull8 | the child's standard output will be discarded, instead of going to the same location as the parent's standard output. |
StderrToDevNull16 | the child's standard error will be discarded. |
ChildInheritsStdin32 | the child will inherit the parent's standard input (by default, the child's standard input is attached to /dev/null). |
FileAndArgvZero64 | the first element of argv is the file to execute, while the remaining elements are the actual argument vector to pass to the file. Normally glib.global.spawnAsyncWithPipes uses argv[0] as the file to execute, and passes all of argv to the child. |
SearchPathFromEnvp128 | if argv[0] is not an absolute path, it will be looked for in the PATH from the passed child environment. Since: 2.34 |
CloexecPipes256 | create all pipes with the O_CLOEXEC flag set. Since: 2.40 |
ChildInheritsStdout512 | The child will inherit the parent's standard output. |
ChildInheritsStderr1024 | The child will inherit the parent's standard error. |
StdinFromDevNull2048 | The child's standard input is attached to /dev/null. |
Flags passed to glib.global.spawnSync, glib.global.spawnAsync and glib.global.spawnAsyncWithPipes.