On Thu, Apr 14, 2011 at 10:51:38PM +0800, 徐亮 <[email protected]> wrote:
>   I have implement a watch dog process that can restart terminated
> child processes. I want to watch sigterm both parent process and child
> process. After call loop.post_fork(), I still got :

After a fork, any registered signal handlers are still registered, which is
the nature of how fork works.

However, if all you want is a watchdog I recommend using a seperate exec for
that, as fork creates way too many problems when you want to do real work in
both parent and child.

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