:right-sidebar: True SpawnFlags =================================================================== .. currentmodule:: gi.repository.GLib .. class:: SpawnFlags :no-contents-entry: Flags passed to :func:`~gi.repository.GLib.spawn_sync`, :func:`~gi.repository.GLib.spawn_async` and :func:`~gi.repository.GLib.spawn_async_with_pipes`. Fields ------ .. rst-class:: interim-class .. class:: SpawnFlags :no-index: .. attribute:: CHILD_INHERITS_STDERR The child will inherit the parent's standard error. .. versionadded:: 2.74 .. attribute:: CHILD_INHERITS_STDIN The child will inherit the parent's standard input (by default, the child's standard input is attached to ``/dev/null``). .. attribute:: CHILD_INHERITS_STDOUT The child will inherit the parent's standard output. .. versionadded:: 2.74 .. attribute:: CLOEXEC_PIPES Create all pipes with the ``O_CLOEXEC`` flag set. Since: 2.40 .. attribute:: DEFAULT No flags, default behaviour .. attribute:: DO_NOT_REAP_CHILD The child will not be automatically reaped; you must use :func:`~gi.repository.GLib.child_watch_add` yourself (or call waitpid() or handle ``SIGCHLD`` yourself), or the child will become a zombie. .. attribute:: 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 :func:`~gi.repository.GLib.spawn_async_with_pipes` uses ``argv[0]`` as the file to execute, and passes all of ``argv`` to the child. .. attribute:: 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. .. attribute:: SEARCH_PATH ``argv[0]`` need not be an absolute path, it will be looked for in the user's ``PATH``. .. attribute:: 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 .. attribute:: STDERR_TO_DEV_NULL The child's standard error will be discarded. .. attribute:: STDIN_FROM_DEV_NULL The child's standard input is attached to ``/dev/null``. .. versionadded:: 2.74 .. attribute:: 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.