Re: Warning about reaped children
- From: Federico Mena Quintero <federico novell com>
- To: Matthias Clasen <matthias clasen gmail com>
- Cc: GTK+ development mailing list <gtk-devel-list gnome org>
- Subject: Re: Warning about reaped children
- Date: Tue, 22 May 2007 15:08:21 -0500
On Tue, 2007-05-22 at 13:32 -0400, Matthias Clasen wrote:
> On 3/29/07, Federico Mena Quintero <federico novell com> wrote:
> > Hi,
> >
> > I forgot to pass G_SPAWN_DO_NOT_REAP_CHILD to g_spawn_async_with_pipes()
> > and ended up scratching my head about why my GChildWatch callback wasn't
> > firing. After some hot strace action and RTFM, I added that flag and
> > everything worked perfectly. Do we need a warning like the one in the
> > attached patch?
>
> Sounds like a good idea to me.
Hmm, Tim had a few objections:
http://mail.gnome.org/archives/gtk-devel-list/2007-April/msg00037.html
Though I think the common case is that one *isn't* doing the things that
could cause waitpid() to return ECHILD --- so the warning would be
adequate.
Federico
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]