Initialize child_watch_count to 1, so that we don't miss the very first
authorMatthias Clasen <mclasen@redhat.com>
Mon, 8 Nov 2004 15:34:26 +0000 (15:34 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Mon, 8 Nov 2004 15:34:26 +0000 (15:34 +0000)
commit0631238743d968a39798ebc2f32eb1418ff697c6
treeaaf1115677514f2b7306c89c91c7d5e7d6c286e3
parent6a1d7478d76455ef6dacaf091e1ef8d24afea733
Initialize child_watch_count to 1, so that we don't miss the very first

2004-11-08  Matthias Clasen  <mclasen@redhat.com>

* glib/gmain.c: Initialize child_watch_count to 1, so
that we don't miss the very first child if it exits
before we set up the child watch. In that case we had
previously source->count == child_watch_count == 0,
causing g_child_watch_check() to skip the waitpid()
call.  (#154827, Gustavo Carneiro)

* glib/gmain.c (g_child_watch_source_init_single)
(g_child_watch_source_init_multi_threaded): Use sigaction()
instead of signal().  (#136867, Jonas Jonsson, patch by
Archana Shah)
ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gmain.c