Package ch.bailu.gtk.glib
Interface SpawnFlags
public interface SpawnFlags
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe child will inherit the parent's standard error.static final intthe child will inherit the parent's standard
input (by default, the child's standard input is attached to `/dev/null`).static final intThe child will inherit the parent's standard output.static final intcreate all pipes with the `O_CLOEXEC` flag set.static final intno flags, default behaviourstatic final intthe child will not be automatically reaped;
you must use g_child_watch_add() yourself (or call waitpid() or handle
`SIGCHLD` yourself), or the child will become a zombie.static final intthe first element of `argv` is the file to
execute, while the remaining elements are the actual argument vector
to pass to the file.static final intthe 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.static final int`argv[0]` need not be an absolute path, it will be
looked for in the user's `PATH`.static final intif `argv[0]` is not an absolute path,
it will be looked for in the `PATH` from the passed child environment.static final intthe child's standard error will be discarded.static final intThe child's standard input is attached to `/dev/null`.static final intthe child's standard output will be discarded,
instead of going to the same location as the parent's standard output.
-
Field Details
-
DEFAULT
static final int DEFAULTno flags, default behaviour- See Also:
-
LEAVE_DESCRIPTORS_OPEN
static final int 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.- See Also:
-
DO_NOT_REAP_CHILD
static final int DO_NOT_REAP_CHILDthe child will not be automatically reaped;
you must use g_child_watch_add() yourself (or call waitpid() or handle
`SIGCHLD` yourself), or the child will become a zombie.- See Also:
-
SEARCH_PATH
static final int SEARCH_PATH`argv[0]` need not be an absolute path, it will be
looked for in the user's `PATH`.- See Also:
-
STDOUT_TO_DEV_NULL
static final int STDOUT_TO_DEV_NULLthe child's standard output will be discarded,
instead of going to the same location as the parent's standard output.- See Also:
-
STDERR_TO_DEV_NULL
static final int STDERR_TO_DEV_NULLthe child's standard error will be discarded.- See Also:
-
CHILD_INHERITS_STDIN
static final int CHILD_INHERITS_STDINthe child will inherit the parent's standard
input (by default, the child's standard input is attached to `/dev/null`).- See Also:
-
FILE_AND_ARGV_ZERO
static final int 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 g_spawn_async_with_pipes() uses `argv[0]`
as the file to execute, and passes all of `argv` to the child.- See Also:
-
SEARCH_PATH_FROM_ENVP
static final int 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- See Also:
-
CLOEXEC_PIPES
static final int CLOEXEC_PIPEScreate all pipes with the `O_CLOEXEC` flag set.
Since: 2.40- See Also:
-
CHILD_INHERITS_STDOUT
static final int CHILD_INHERITS_STDOUTThe child will inherit the parent's standard output.- See Also:
-
CHILD_INHERITS_STDERR
static final int CHILD_INHERITS_STDERRThe child will inherit the parent's standard error.- See Also:
-
STDIN_FROM_DEV_NULL
static final int STDIN_FROM_DEV_NULLThe child's standard input is attached to `/dev/null`.- See Also:
-