Gjsify LogoGjsify Logo

Flags to define the behaviour of a #GSubprocess.

Note that the default for stdin is to redirect from /dev/null. For stdout and stderr the default are for them to inherit the corresponding descriptor from the calling process.

Note that it is a programmer error to mix 'incompatible' flags. For example, you may not request both %G_SUBPROCESS_FLAGS_STDOUT_PIPE and %G_SUBPROCESS_FLAGS_STDOUT_SILENCE.

bitfield

Index

Enumeration Members

INHERIT_FDS: number

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).

NONE: number

No flags.

SEARCH_PATH_FROM_ENVP: number

if path searching is needed when spawning the subprocess, use the PATH in the launcher environment. (Since: 2.72)

STDERR_MERGE: number

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.

STDERR_PIPE: number

create a pipe for the stderr of the spawned process that can be accessed with g_subprocess_get_stderr_pipe().

STDERR_SILENCE: number

silence the stderr of the spawned process (ie: redirect to /dev/null).

STDIN_INHERIT: number

stdin is inherited from the calling process.

STDIN_PIPE: number

create a pipe for the stdin of the spawned process that can be accessed with g_subprocess_get_stdin_pipe().

STDOUT_PIPE: number

create a pipe for the stdout of the spawned process that can be accessed with g_subprocess_get_stdout_pipe().

STDOUT_SILENCE: number

silence the stdout of the spawned process (ie: redirect to /dev/null).

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Type alias with type parameter
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method