On Sat, Aug 08, 2009 at 01:59:21PM -0300, Andre Nathan <[email protected]> 
wrote:
> 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?

sure, just stop the watcher?

note, however, that I can't see your child exiting - did you forget to
call exit() or return? both parent and child will call ev_loop after starting
a watcher.

you also never call ev_fork - this is required after a fork if you want to
continue event handling in the child and parent.

but the answer is still to stop the watcher on end-of-file, or before, or
after, or anytime, when you do not want those events anymore.

-- 
                The choice of a       Deliantra, the free code+content MORPG
      -----==-     _GNU_              http://www.deliantra.net
      ----==-- _       generation
      ---==---(_)__  __ ____  __      Marc Lehmann
      --==---/ / _ \/ // /\ \/ /      [email protected]
      -=====/_/_//_/\_,_/ /_/\_\

_______________________________________________
libev mailing list
[email protected]
http://lists.schmorp.de/cgi-bin/mailman/listinfo/libev

Reply via email to