Skip to main content

Kill all children processes when the parent dies

Project description

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

Build Status

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

CaoE-0.1.4.1.tar.gz (3.1 kB view details)

Uploaded Source

File details

Details for the file CaoE-0.1.4.1.tar.gz.

File metadata

  • Download URL: CaoE-0.1.4.1.tar.gz
  • Upload date:
  • Size: 3.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for CaoE-0.1.4.1.tar.gz
Algorithm Hash digest
SHA256 3aacc2192819cc108405991c59dc3e80ffb52f0ed6dbef64ceba71f56aee0516
MD5 99138f2eca73e3b18386e54d6c73c3e0
BLAKE2b-256 d2335e85b63a2de5412321fc5791bf752a32ff45a323639582e6bae0e0ff2246

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page