Interface SubprocessFlags


public interface SubprocessFlags
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final int
    spawned processes will inherit the
    file descriptors of their parent, unless those descriptors have
    been explicitly marked as close-on-exec.
    static final int
    No flags.
    static final int
    if path searching is
    needed when spawning the subprocess, use the `PATH` in the launcher
    environment.
    static final int
    merge the stderr of the spawned
    process with whatever the stdout happens to be.
    static final int
    create a pipe for the stderr of the
    spawned process that can be accessed with
    g_subprocess_get_stderr_pipe().
    static final int
    silence the stderr of the spawned
    process (ie: redirect to `/dev/null`).
    static final int
    stdin is inherited from the
    calling process.
    static final int
    create a pipe for the stdin of the
    spawned process that can be accessed with
    g_subprocess_get_stdin_pipe().
    static final int
    create a pipe for the stdout of the
    spawned process that can be accessed with
    g_subprocess_get_stdout_pipe().
    static final int
    silence the stdout of the spawned
    process (ie: redirect to `/dev/null`).
  • Field Details

    • NONE

      static final int NONE
      No flags.
      See Also:
    • STDIN_PIPE

      static final int STDIN_PIPE
      create a pipe for the stdin of the
      spawned process that can be accessed with
      g_subprocess_get_stdin_pipe().
      See Also:
    • STDIN_INHERIT

      static final int STDIN_INHERIT
      stdin is inherited from the
      calling process.
      See Also:
    • STDOUT_PIPE

      static final int STDOUT_PIPE
      create a pipe for the stdout of the
      spawned process that can be accessed with
      g_subprocess_get_stdout_pipe().
      See Also:
    • STDOUT_SILENCE

      static final int STDOUT_SILENCE
      silence the stdout of the spawned
      process (ie: redirect to `/dev/null`).
      See Also:
    • STDERR_PIPE

      static final int STDERR_PIPE
      create a pipe for the stderr of the
      spawned process that can be accessed with
      g_subprocess_get_stderr_pipe().
      See Also:
    • STDERR_SILENCE

      static final int STDERR_SILENCE
      silence the stderr of the spawned
      process (ie: redirect to `/dev/null`).
      See Also:
    • STDERR_MERGE

      static final int STDERR_MERGE
      merge the stderr of the spawned
      process with whatever the stdout happens to be. This is a good way
      of directing both streams to a common log file, for example.
      See Also:
    • INHERIT_FDS

      static final int INHERIT_FDS
      spawned processes will inherit the
      file descriptors of their parent, unless those descriptors have
      been explicitly marked as close-on-exec. This flag has no effect
      over the "standard" file descriptors (stdin, stdout, stderr).
      See Also:
    • SEARCH_PATH_FROM_ENVP

      static final int SEARCH_PATH_FROM_ENVP
      if path searching is
      needed when spawning the subprocess, use the `PATH` in the launcher
      environment. (Since: 2.72)
      See Also: