Oh, I think I got it. childcb() schedules EV_SIGNAL, which triggers another call to childcb() from eventloop. Am I right?
2012/5/10 Brandon Black <blbl...@gmail.com>: > On Thu, May 10, 2012 at 6:28 AM, Vetoshkin Nikita > <nikita.vetosh...@gmail.com> wrote: >> So correct SIGCHLD handler should loop calling waitpid() until no zombies >> exist. >> Please, correct me, if I'm wrong. > > The code does appear to "loop" on waitpid as you describe, it just > does so by feeding itself new events until waitpid() indicates there > are no more children, if you look at childcb() in ev.c _______________________________________________ libev mailing list libev@lists.schmorp.de http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev