Skip to content

robn/pact

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

pact

This runs another program in such a way that when the calling process dies, a SIGTERM is delivered to the program.

This is useful in command pipelines, shells, process managers and other situations where an intermediate process recieves a signal and dies, causing its children to be reattached to PID 1.

running

$ make
$ ./pact [-N] path/to/command

options

  • -N - signal number to send. Default is 15 (SIGTERM).

credits and license

Copyright (c) 2015 Robert Norris. MIT license. See LICENSE.

About

Arrange for a process to die when it's parent does

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published