CaoE 0.1.4.1

Kill all children processes when the parent dies

  Add it to your Download Basket!

 Add it to your Watch List!

0/5

Rate it!
send us
an update
LICENSE TYPE:
BSD License 
USER RATING:
UNRATED
  0.0/5
DEVELOPED BY:
Qiangning Hong
HOMEPAGE:
github.com
CATEGORY:
ROOT \ System \ System Administration
CaoE is a Python tool that makes it easy to automatically kills all spawned children (and grandchildren) processes when the parent dies, even if killed by SIGKILL.

Usage

Simply call::

  caoe.install()

at the beginning of your program.

How it works

When ``caoe.install()`` is called, it forks out a child process and a grandchild process. Both the parent and the child process will block, only the grandchild process will continue to run.  The child process keeps checking the status of parent.  If it found that the parent has died, it kills grandchild process (and grand-grandchild processes if there are any) and suicides.

Last updated on March 9th, 2012

requirements

#kill process #child process #SIGKILL #kill #process #parent

Add your review!

SUBMIT