mirror of https://github.com/krallin/tini.git
Document TINI_KILL_PROCESS_GROUP environment variable
This commit is contained in:
parent
0b44d36658
commit
dfcf093911
13
README.md
13
README.md
|
@ -202,10 +202,15 @@ and ctrl-C it, nothing happens: SIGINT is sent to the 'sh' process,
|
||||||
but that shell won't react to it while it is waiting for the 'sleep'
|
but that shell won't react to it while it is waiting for the 'sleep'
|
||||||
to finish.
|
to finish.
|
||||||
|
|
||||||
With the `-g` option, Tini kills the child process group , so that
|
You can configure Tini to kill the child process group, so that every process
|
||||||
every process in the group gets the signal. This corresponds more
|
in the group gets the signal, by either:
|
||||||
closely to what happens when you do ctrl-C etc. in a terminal: The
|
|
||||||
signal is sent to the foreground process group.
|
+ Passing the `-g` argument to Tini (`tini -g -- ...`)
|
||||||
|
+ Setting the environment variable `TINI_KILL_PROCESS_GROUP`
|
||||||
|
(e.g. `export TINI_KILL_PROCESS_GROUP=`).
|
||||||
|
|
||||||
|
This corresponds more closely to what happens when you do ctrl-C etc. in a
|
||||||
|
terminal: The signal is sent to the foreground process group.
|
||||||
|
|
||||||
|
|
||||||
### Parent Death Signal ###
|
### Parent Death Signal ###
|
||||||
|
|
Loading…
Reference in New Issue