Flags passed to spawn-sync,
spawn-async and
spawn-async-with-pipes.
defaultno flags, default behaviour
leave-descriptors-openthe 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.
do-not-reap-childthe child will not be automatically reaped; you must use
child-watch-add yourself (or call
waitpid() or handle SIGCHLD yourself), or the child will
become a zombie.
search-pathargv[0] need not be an absolute path, it will be looked for in
the user’s PATH.
stdout-to-dev-nullthe child’s standard output will be discarded, instead of going to the same location as the parent’s standard output.
stderr-to-dev-nullthe child’s standard error will be discarded.
child-inherits-stdinthe child will inherit the parent’s standard input (by default, the
child’s standard input is attached to /dev/null).
file-and-argv-zerothe first element of argv is the file to execute, while the
remaining elements are the actual argument vector to pass to the file.
Normally spawn-async-with-pipes
uses argv[0] as the file to execute, and passes all of
argv to the child.
search-path-from-envpif argv[0] is not an absolute path, it will be looked for in the
PATH from the passed child environment. Since: 2.34
cloexec-pipescreate all pipes with the O_CLOEXEC flag set. Since: 2.40
child-inherits-stdoutThe child will inherit the parent’s standard output.
child-inherits-stderrThe child will inherit the parent’s standard error.
stdin-from-dev-nullThe child’s standard input is attached to /dev/null.