Glib child processes

Marc Lehmann schmorp at schmorp.de
Tue Aug 2 22:39:31 CEST 2011


On Tue, Aug 02, 2011 at 10:24:38PM +0200, Marc Lehmann <schmorp at schmorp.de> wrote:
> - a pid of 0 is no longer working (gli reports a pid of 0 to the callback),
>   which is a regression, but something we could probably live with (but then
>   it's not my code thta breaks).

OTOH, although AnyEvent doesn't claim it works for all event loops,
without this ability, I just checked and Glib would be the only event loop
that would lack this ability then, so it would be quite nice to keep this
functionality, if possible.

My quick reading of the glib sources, however, suggest that the
implementation makes this impossible, as it really only works for pid != 0
(for pid == 0 glib silently ignores all other watchers).

It also suggests that the lack of support for multiple watchers per pid
requires emulation.

So bad luck then :()

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      schmorp at schmorp.de
      -=====/_/_//_/\_,_/ /_/\_\



More information about the anyevent mailing list