Re: Warning about reaped children



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]