mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-11-02 17:32:18 +01:00
Just ignore the child_setup function, never call it. The is no situation
2008-09-25 Tor Lillqvist <tml@novell.com> * glib/gspawn-win32.c (do_spawn_with_pipes) (do_spawn_directly): Just ignore the child_setup function, never call it. The is no situation in which it could be useful on Windows. Do print a warning, like before. * glib/gspawn.c (g_spawn_async_with_pipes): Corresponding change in documentation. svn path=/trunk/; revision=7540
This commit is contained in:
committed by
Tor Lillqvist
parent
ee685b003e
commit
0ed8b94bfe
@@ -542,12 +542,12 @@ g_spawn_sync (const gchar *working_directory,
|
||||
* exec(). That is, @child_setup is called just
|
||||
* before calling exec() in the child. Obviously
|
||||
* actions taken in this function will only affect the child, not the
|
||||
* parent. On Windows, there is no separate fork() and exec()
|
||||
* functionality. Child processes are created and run with
|
||||
* a single API call, CreateProcess(). @child_setup is
|
||||
* called in the parent process just before creating the child
|
||||
* process. You should carefully consider what you do in @child_setup
|
||||
* if you intend your software to be portable to Windows.
|
||||
* parent.
|
||||
*
|
||||
* On Windows, there is no separate fork() and exec()
|
||||
* functionality. Child processes are created and run with a single
|
||||
* API call, CreateProcess(). There is no sensible thing @child_setup
|
||||
* could be used for on Windows so it is ignored and not called.
|
||||
*
|
||||
* If non-%NULL, @child_pid will on Unix be filled with the child's
|
||||
* process ID. You can use the process ID to send signals to the
|
||||
|
||||
Reference in New Issue
Block a user