Interface SpawnFlags


public interface SpawnFlags
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    The child will inherit the parent's standard error.
    static final int
    the child will inherit the parent's standard
    input (by default, the child's standard input is attached to `/dev/null`).
    static final int
    The child will inherit the parent's standard output.
    static final int
    create all pipes with the `O_CLOEXEC` flag set.
    static final int
    no flags, default behaviour
    static final int
    the 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 int
    the 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 int
    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.
    static final int
    `argv[0]` need not be an absolute path, it will be
    looked for in the user's `PATH`.
    static final int
    if `argv[0]` is not an absolute path,
    it will be looked for in the `PATH` from the passed child environment.
    static final int
    the child's standard error will be discarded.
    static final int
    The child's standard input is attached to `/dev/null`.
    static final int
    the 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 DEFAULT
      no flags, default behaviour
      See Also:
    • LEAVE_DESCRIPTORS_OPEN

      static final int LEAVE_DESCRIPTORS_OPEN
      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.
      See Also:
    • DO_NOT_REAP_CHILD

      static final int DO_NOT_REAP_CHILD
      the 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_NULL
      the 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_NULL
      the child's standard error will be discarded.
      See Also:
    • CHILD_INHERITS_STDIN

      static final int CHILD_INHERITS_STDIN
      the 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_ZERO
      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 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_ENVP
      if `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_PIPES
      create all pipes with the `O_CLOEXEC` flag set.
      Since: 2.40
      See Also:
    • CHILD_INHERITS_STDOUT

      static final int CHILD_INHERITS_STDOUT
      The child will inherit the parent's standard output.
      See Also:
    • CHILD_INHERITS_STDERR

      static final int CHILD_INHERITS_STDERR
      The child will inherit the parent's standard error.
      See Also:
    • STDIN_FROM_DEV_NULL

      static final int STDIN_FROM_DEV_NULL
      The child's standard input is attached to `/dev/null`.
      See Also: