mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-15 04:05:11 +01:00
glib/gmain.c Clarify what a "child pid" is in the doc comments.
2008-06-11 Tor Lillqvist <tml@novell.com> * glib/gmain.c * glib/gspawn.c: Clarify what a "child pid" is in the doc comments. svn path=/trunk/; revision=6995
This commit is contained in:
parent
e0072d4441
commit
a689811a41
@ -1,3 +1,9 @@
|
|||||||
|
2008-06-11 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
* glib/gmain.c
|
||||||
|
* glib/gspawn.c: Clarify what a "child pid" is in the doc
|
||||||
|
comments.
|
||||||
|
|
||||||
2008-06-10 Matthias Clasen <mclasen@redhat.com>
|
2008-06-10 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
Bug 536158 – also bump GHashTable version when a node is removed via
|
Bug 536158 – also bump GHashTable version when a node is removed via
|
||||||
|
10
glib/gmain.c
10
glib/gmain.c
@ -4003,8 +4003,8 @@ g_child_watch_source_init (void)
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_child_watch_source_new:
|
* g_child_watch_source_new:
|
||||||
* @pid: process id of a child process to watch. On Windows, a HANDLE
|
* @pid: process to watch. On POSIX the pid of a child process. On
|
||||||
* for the process to watch (which actually doesn't have to be a child).
|
* Windows a handle for a process (which doesn't have to be a child).
|
||||||
*
|
*
|
||||||
* Creates a new child_watch source.
|
* Creates a new child_watch source.
|
||||||
*
|
*
|
||||||
@ -4054,7 +4054,8 @@ g_child_watch_source_new (GPid pid)
|
|||||||
* g_child_watch_add_full:
|
* g_child_watch_add_full:
|
||||||
* @priority: the priority of the idle source. Typically this will be in the
|
* @priority: the priority of the idle source. Typically this will be in the
|
||||||
* range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE.
|
* range between #G_PRIORITY_DEFAULT_IDLE and #G_PRIORITY_HIGH_IDLE.
|
||||||
* @pid: process id of a child process to watch
|
* @pid: process to watch. On POSIX the pid of a child process. On
|
||||||
|
* Windows a handle for a process (which doesn't have to be a child).
|
||||||
* @function: function to call
|
* @function: function to call
|
||||||
* @data: data to pass to @function
|
* @data: data to pass to @function
|
||||||
* @notify: function to call when the idle is removed, or %NULL
|
* @notify: function to call when the idle is removed, or %NULL
|
||||||
@ -4103,7 +4104,8 @@ g_child_watch_add_full (gint priority,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_child_watch_add:
|
* g_child_watch_add:
|
||||||
* @pid: process id of a child process to watch
|
* @pid: process id to watch. On POSIX the pid of a child process. On
|
||||||
|
* Windows a handle for a process (which doesn't have to be a child).
|
||||||
* @function: function to call
|
* @function: function to call
|
||||||
* @data: data to pass to @function
|
* @data: data to pass to @function
|
||||||
*
|
*
|
||||||
|
@ -84,12 +84,15 @@ g_spawn_error_quark (void)
|
|||||||
* @flags: flags from #GSpawnFlags
|
* @flags: flags from #GSpawnFlags
|
||||||
* @child_setup: function to run in the child just before exec()
|
* @child_setup: function to run in the child just before exec()
|
||||||
* @user_data: user data for @child_setup
|
* @user_data: user data for @child_setup
|
||||||
* @child_pid: return location for child process ID, or %NULL
|
* @child_pid: return location for child process reference, or %NULL
|
||||||
* @error: return location for error
|
* @error: return location for error
|
||||||
*
|
*
|
||||||
* See g_spawn_async_with_pipes() for a full description; this function
|
* See g_spawn_async_with_pipes() for a full description; this function
|
||||||
* simply calls the g_spawn_async_with_pipes() without any pipes.
|
* simply calls the g_spawn_async_with_pipes() without any pipes.
|
||||||
*
|
*
|
||||||
|
* You should call g_spawn_close_pid() on the returned child process
|
||||||
|
* reference when you don't need it any more.
|
||||||
|
*
|
||||||
* <note><para>
|
* <note><para>
|
||||||
* If you are writing a GTK+ application, and the program you
|
* If you are writing a GTK+ application, and the program you
|
||||||
* are spawning is a graphical application, too, then you may
|
* are spawning is a graphical application, too, then you may
|
||||||
@ -97,6 +100,11 @@ g_spawn_error_quark (void)
|
|||||||
* the spawned program opens its windows on the right screen.
|
* the spawned program opens its windows on the right screen.
|
||||||
* </para></note>
|
* </para></note>
|
||||||
*
|
*
|
||||||
|
* <note><para> Note that the returned @child_pid on Windows is a
|
||||||
|
* handle to the child process and not its identifier. Process handles
|
||||||
|
* and process identifiers are different concepts on Windows.
|
||||||
|
* </para></note>
|
||||||
|
*
|
||||||
* Return value: %TRUE on success, %FALSE if error is set
|
* Return value: %TRUE on success, %FALSE if error is set
|
||||||
**/
|
**/
|
||||||
gboolean
|
gboolean
|
||||||
@ -485,6 +493,10 @@ g_spawn_sync (const gchar *working_directory,
|
|||||||
* vector elements that need it before calling the C runtime
|
* vector elements that need it before calling the C runtime
|
||||||
* spawn() function.
|
* spawn() function.
|
||||||
*
|
*
|
||||||
|
* The returned @child_pid on Windows is a handle to the child
|
||||||
|
* process, not its identifier. Process handles and process
|
||||||
|
* identifiers are different concepts on Windows.
|
||||||
|
*
|
||||||
* @envp is a %NULL-terminated array of strings, where each string
|
* @envp is a %NULL-terminated array of strings, where each string
|
||||||
* has the form <literal>KEY=VALUE</literal>. This will become
|
* has the form <literal>KEY=VALUE</literal>. This will become
|
||||||
* the child's environment. If @envp is %NULL, the child inherits its
|
* the child's environment. If @envp is %NULL, the child inherits its
|
||||||
@ -577,7 +589,7 @@ g_spawn_sync (const gchar *working_directory,
|
|||||||
* and @standard_error will not be filled with valid values.
|
* and @standard_error will not be filled with valid values.
|
||||||
*
|
*
|
||||||
* If @child_pid is not %NULL and an error does not occur then the returned
|
* If @child_pid is not %NULL and an error does not occur then the returned
|
||||||
* pid must be closed using g_spawn_close_pid().
|
* process reference must be closed using g_spawn_close_pid().
|
||||||
*
|
*
|
||||||
* <note><para>
|
* <note><para>
|
||||||
* If you are writing a GTK+ application, and the program you
|
* If you are writing a GTK+ application, and the program you
|
||||||
@ -1641,9 +1653,9 @@ g_execute (const gchar *file,
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* g_spawn_close_pid:
|
* g_spawn_close_pid:
|
||||||
* @pid: The process identifier to close
|
* @pid: The process reference to close
|
||||||
*
|
*
|
||||||
* On some platforms, notably WIN32, the #GPid type represents a resource
|
* On some platforms, notably Windows, the #GPid type represents a resource
|
||||||
* which must be closed to prevent resource leaking. g_spawn_close_pid()
|
* which must be closed to prevent resource leaking. g_spawn_close_pid()
|
||||||
* is provided for this purpose. It should be used on all platforms, even
|
* is provided for this purpose. It should be used on all platforms, even
|
||||||
* though it doesn't do anything under UNIX.
|
* though it doesn't do anything under UNIX.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user