libev SIGCHLD handler
Vetoshkin Nikita
nikita.vetoshkin at gmail.com
Thu May 10 19:38:14 CEST 2012
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 <blblack at gmail.com>:
> On Thu, May 10, 2012 at 6:28 AM, Vetoshkin Nikita
> <nikita.vetoshkin at 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
More information about the libev
mailing list