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 <[email protected]>: > On Thu, May 10, 2012 at 6:28 AM, Vetoshkin Nikita > <[email protected]> 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 [email protected] http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev
