Child exit generates read events

Andre Nathan andre at
Sat Aug 8 18:59:21 CEST 2009


I'm just getting started with libev. I have a small program that does
the following:

* Create a socket pair and fork
* Parent and child close one of the sockets
* Parent installs a callback for read events on its socket
* Child sleeps for some seconds and exits

After the child process exits, the callback for readable events on the
parent socket keeps being called. Is there anything I can do to avoid
that? I have pasted the code here:

Thanks in advance,

More information about the libev mailing list