| ChromeController.exit_handler | index /media/Scripts/ChromeController/ChromeController/exit_handler.py |
Utility (Linux only) to ensure subprocesses exit when their parents do by sending
a specified signal when the parent dies.
Usage:
subprocess.Popen(['some-executable'], preexec_fn=on_parent_exit('SIGHUP'))
Taken from https://gist.github.com/evansd/2346614,
http://evans.io/legacy/posts/killing-child-processes-on-parent-exit-prctl/
| Modules | ||||||
| ||||||
| Classes | ||||||||||
|
| ||||||||||
| Functions | ||
| ||
| Data | ||
| PR_SET_PDEATHSIG = 1 cdll = <ctypes.LibraryLoader object> | ||