Glib child processes

Marc Lehmann schmorp at schmorp.de
Tue Aug 2 22:24:38 CEST 2011


> It could be good if AnyEvent::Impl::Glib used the recently wrapped
> Glib::Child->watch_add(), so AnyEvent and Glib don't both try to install
> SIGCHLD handlers.

Hi, I was just trying to integrate your patch (sorry for the delay :),
however, there are two problems:

- 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).

- glib itself claims that only one watcher is supported, which breaks the
  AnyEvent API. is this limitation being lifted in the Glib perl interface
  (I think you wrote the implementatioon for that too :), or does this
  need a workaround in AnyEvent?

-- 
                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