On Wed, Feb 24, 2016 at 09:22:15PM +0800, adream <[email protected]> wrote:
> hi
> I thought, if I didn't call the ev_loop_fork in the child, then the
> watcher in child wouldn't be triggered.
ev_loop_fork (or EVFLAG_FORKCHECK) are required for the event loop to
survive a fork. they don't do anything else.
not using them and forking *might* work in some circumstances, but *will*
fail in others.
so the choice between calling ev_loop_fork and not is "make the loop work"
vs. "undefined behaviour". the latter is a libev usage bug.
--
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/mailman/listinfo/libev