Skip to main content

processfamily

A library for launching, maintaining, and terminating a family of long-lived python child processes on Windows and *nix.

The child processes can be launched from a console application or a Windows service / *nix daemon. A simple line-oriented text-based control protocol is implemented over stdin / stdout that allows the child process to be cleanly shutdown. For this reason, sys.stdin and sys.stdout are redirected to os.devnull in the child process. By default, the output of the child process sys.stderr stream will be echoed on the parent sys.stderr stream.

In order to avoid orphaned processes, the child processes are created in a way that will ensure that they are killed if the parent dies. On Windows this is implemented using a shared Job Object. If the parent process is not already in a Job, it will create a Job Object, and add itself in to that job before any of the child processes are created. For *nix this uses prctl PR_SET_PDEATHSIG setting.

Download files

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

Source Distribution

processfamily-0.9.tar.gz (46.1 kB view details)

Uploaded Source

File details

Details for the file processfamily-0.9.tar.gz.

File metadata

  • Download URL: processfamily-0.9.tar.gz
  • Upload date:
  • Size: 46.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.1 CPython/3.10.6

File hashes

Hashes for processfamily-0.9.tar.gz
Algorithm Hash digest
SHA256 3dff6dc506052333e55a197aa893058ebf59ecbbdff59cc9d46047cb0214ca33
MD5 9c9ddd02e1256f8755016d957f3eeb10
BLAKE2b-256 4a3fcbf6fa0144163f5054f1ce211509cfc7abd0887733b3ebf8d25146a50a56

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

0.9 This release

1 file

0.8

2 files

0.7

1 file

0.6.1

1 file

0.6

1 file

0.5

1 file

0.4

1 file

0.3

1 file

0.2

1 file

0.1

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page