mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-09 12:25:48 +01:00
doc: Remove reference to non-existent #GChildWatch
The g_spawn_ documentation was talking about #GChildWatch, which doesn't exist. Refer to g_child_watch_add() instead.
This commit is contained in:
parent
c32c9526ad
commit
118fa5d502
@ -527,16 +527,15 @@ g_spawn_sync (const gchar *working_directory,
|
|||||||
* parent's environment.
|
* parent's environment.
|
||||||
*
|
*
|
||||||
* @flags should be the bitwise OR of any flags you want to affect the
|
* @flags should be the bitwise OR of any flags you want to affect the
|
||||||
* function's behaviour. The %G_SPAWN_DO_NOT_REAP_CHILD means that
|
* function's behaviour. The %G_SPAWN_DO_NOT_REAP_CHILD means that the
|
||||||
* the child will not automatically be reaped; you must use a
|
* child will not automatically be reaped; you must use a child watch to
|
||||||
* #GChildWatch source to be notified about the death of the child
|
* be notified about the death of the child process. Eventually you must
|
||||||
* process. Eventually you must call g_spawn_close_pid() on the
|
* call g_spawn_close_pid() on the @child_pid, in order to free
|
||||||
* @child_pid, in order to free resources which may be associated
|
* resources which may be associated with the child process. (On Unix,
|
||||||
* with the child process. (On Unix, using a #GChildWatch source is
|
* using a child watch is equivalent to calling waitpid() or handling
|
||||||
* equivalent to calling waitpid() or handling the %SIGCHLD signal
|
* the %SIGCHLD signal manually. On Windows, calling g_spawn_close_pid()
|
||||||
* manually. On Windows, calling g_spawn_close_pid() is equivalent
|
* is equivalent to calling CloseHandle() on the process handle returned
|
||||||
* to calling CloseHandle() on the process handle returned in
|
* in @child_pid). See g_child_watch_add().
|
||||||
* @child_pid).
|
|
||||||
*
|
*
|
||||||
* %G_SPAWN_LEAVE_DESCRIPTORS_OPEN means that the parent's open file
|
* %G_SPAWN_LEAVE_DESCRIPTORS_OPEN means that the parent's open file
|
||||||
* descriptors will be inherited by the child; otherwise all
|
* descriptors will be inherited by the child; otherwise all
|
||||||
|
Loading…
x
Reference in New Issue
Block a user