mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 11:12:11 +01:00
Add a note regarding waitpid(-1).
2005-04-01 Matthias Clasen <mclasen@redhat.com> * glib/gmain.c (g_child_watch_source_new): Add a note regarding waitpid(-1). (g_child_watch_source_init_multi_threaded): (g_child_watch_source_init_single): Don't use SA_RESTART, since it causes problems on at least one platform. (#168352)
This commit is contained in:
parent
b478e9cc0d
commit
70372a2f30
10
ChangeLog
10
ChangeLog
@ -1,6 +1,14 @@
|
|||||||
|
2005-04-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_child_watch_source_new): Add a note regarding
|
||||||
|
waitpid(-1).
|
||||||
|
(g_child_watch_source_init_multi_threaded):
|
||||||
|
(g_child_watch_source_init_single): Don't use SA_RESTART,
|
||||||
|
since it causes problems on at least one platform. (#168352)
|
||||||
|
|
||||||
2005-03-31 Steve Murphy <murf@e-tools.com>
|
2005-03-31 Steve Murphy <murf@e-tools.com>
|
||||||
|
|
||||||
* configure.in: Added "rw" to ALL_LINGUAS.
|
* configure.in: Added "rw" to ALL_LINGUAS.
|
||||||
|
|
||||||
2005-03-30 Tor Lillqvist <tml@novell.com>
|
2005-03-30 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
2005-04-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_child_watch_source_new): Add a note regarding
|
||||||
|
waitpid(-1).
|
||||||
|
(g_child_watch_source_init_multi_threaded):
|
||||||
|
(g_child_watch_source_init_single): Don't use SA_RESTART,
|
||||||
|
since it causes problems on at least one platform. (#168352)
|
||||||
|
|
||||||
2005-03-31 Steve Murphy <murf@e-tools.com>
|
2005-03-31 Steve Murphy <murf@e-tools.com>
|
||||||
|
|
||||||
* configure.in: Added "rw" to ALL_LINGUAS.
|
* configure.in: Added "rw" to ALL_LINGUAS.
|
||||||
|
|
||||||
2005-03-30 Tor Lillqvist <tml@novell.com>
|
2005-03-30 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
2005-04-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_child_watch_source_new): Add a note regarding
|
||||||
|
waitpid(-1).
|
||||||
|
(g_child_watch_source_init_multi_threaded):
|
||||||
|
(g_child_watch_source_init_single): Don't use SA_RESTART,
|
||||||
|
since it causes problems on at least one platform. (#168352)
|
||||||
|
|
||||||
2005-03-31 Steve Murphy <murf@e-tools.com>
|
2005-03-31 Steve Murphy <murf@e-tools.com>
|
||||||
|
|
||||||
* configure.in: Added "rw" to ALL_LINGUAS.
|
* configure.in: Added "rw" to ALL_LINGUAS.
|
||||||
|
|
||||||
2005-03-30 Tor Lillqvist <tml@novell.com>
|
2005-03-30 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -1,6 +1,14 @@
|
|||||||
|
2005-04-01 Matthias Clasen <mclasen@redhat.com>
|
||||||
|
|
||||||
|
* glib/gmain.c (g_child_watch_source_new): Add a note regarding
|
||||||
|
waitpid(-1).
|
||||||
|
(g_child_watch_source_init_multi_threaded):
|
||||||
|
(g_child_watch_source_init_single): Don't use SA_RESTART,
|
||||||
|
since it causes problems on at least one platform. (#168352)
|
||||||
|
|
||||||
2005-03-31 Steve Murphy <murf@e-tools.com>
|
2005-03-31 Steve Murphy <murf@e-tools.com>
|
||||||
|
|
||||||
* configure.in: Added "rw" to ALL_LINGUAS.
|
* configure.in: Added "rw" to ALL_LINGUAS.
|
||||||
|
|
||||||
2005-03-30 Tor Lillqvist <tml@novell.com>
|
2005-03-30 Tor Lillqvist <tml@novell.com>
|
||||||
|
|
||||||
|
@ -3565,7 +3565,7 @@ g_child_watch_source_init_single (void)
|
|||||||
|
|
||||||
action.sa_handler = g_child_watch_signal_handler;
|
action.sa_handler = g_child_watch_signal_handler;
|
||||||
sigemptyset (&action.sa_mask);
|
sigemptyset (&action.sa_mask);
|
||||||
action.sa_flags = SA_RESTART | SA_NOCLDSTOP;
|
action.sa_flags = SA_NOCLDSTOP;
|
||||||
sigaction (SIGCHLD, &action, NULL);
|
sigaction (SIGCHLD, &action, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -3674,6 +3674,11 @@ g_child_watch_source_init (void)
|
|||||||
* (see g_spawn_close_pid()) @pid must not be closed while the
|
* (see g_spawn_close_pid()) @pid must not be closed while the
|
||||||
* source is still active. Typically, you will want to call
|
* source is still active. Typically, you will want to call
|
||||||
* g_spawn_close_pid() in the callback function for the source.
|
* g_spawn_close_pid() in the callback function for the source.
|
||||||
|
*
|
||||||
|
* Note further that using g_child_watch_source_new() is not
|
||||||
|
* compatible with calling <literal>waitpid(-1)</literal> in
|
||||||
|
* the application. Calling waitpid() for individual pids will
|
||||||
|
* still work fine.
|
||||||
*
|
*
|
||||||
* Return value: the newly-created child watch source
|
* Return value: the newly-created child watch source
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user