SIGCHLD not received

Marc Lehmann schmorp at schmorp.de
Thu May 31 19:13:27 CEST 2012


On Thu, May 31, 2012 at 12:39:24AM +0400, Denis Bilenko <denis.bilenko at gmail.com> wrote:
>  - not use the event loop in the main process; use waitpid()
>  - fail on first iteration
> 
> You can see it here: https://gist.github.com/gists/2838734
> 
> The SIGCHLD is received, of course, but then libev fails to notify the
> child watcher in a timely manner. Instead, it delays the notification
> by 60 seconds (MAX_BLOCKTIME).

I'll have a look, however, from looking at it, the test will always fail
if the system is busy enough, and libev doesn't lose the signal, so
behaviour is essentially correct. I'll see if this case can be optimised
without drawback for other cases.

-- 
                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 libev mailing list