Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agwa/parentdeathutils
Do something when a parent process dies
https://github.com/agwa/parentdeathutils
Last synced: 23 days ago
JSON representation
Do something when a parent process dies
- Host: GitHub
- URL: https://github.com/agwa/parentdeathutils
- Owner: AGWA
- License: other
- Created: 2014-03-29T03:25:31.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2014-03-29T19:59:10.000Z (over 10 years ago)
- Last Synced: 2023-04-04T17:21:23.723Z (over 1 year ago)
- Language: C
- Size: 133 KB
- Stars: 7
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README
- License: COPYING
Awesome Lists containing this project
README
parentdeathutils
================diewithparent - Run a program that is killed when its parent terminates.
onparentdeath - Run a program when onparentdeath's parent terminates.
For more information, consult the respective man pages.
These programs make use of the PR_SET_PDEATHSIG argument to the Linux-specific
prctl() syscall.See https://www.agwa.name/blog/post/remote_ssh_commands_and_broken_connections
for a compelling use case for diewithparent.BUILDING
Just run `make`. You need a C compiler, such as gcc.
DEBIAN PACKAGING
To build the Debian package, check out the 'debian' branch and run
`git-buildpackage -uc -us`.LEGALESE
Copyright (C) 2012 Andrew Ayer
Licensed under the MIT/X11 license. See COPYING for details.