Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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.