deregister all events after fork

Marc Lehmann schmorp at schmorp.de
Mon Nov 5 22:52:16 CET 2012


On Mon, Nov 05, 2012 at 05:19:58PM +0100, Jan-Philip Gehrcke <jgehrcke at googlemail.com> wrote:
> loop. I don't know if I get the terminology right -- I want to
> deregister all events and re-initialize the event loop with the
> effect that basically nothing that has been triggered in the parent
> process has an effect in the child process. Is there an easy way to
> do this?

Why would you want to do that? Wouldn't it be easier to create a new
event loop? If you really need to destroy the default event loop, you can
destroy it, and recreate it, although this does very little to the actual
watchers over which libev has no direct control.

-- 
                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