summaryrefslogtreecommitdiffstats
path: root/bash-completion
diff options
context:
space:
mode:
authorNiklas Hambüchen2017-09-19 20:39:00 +0200
committerNiklas Hambüchen2017-10-14 04:46:13 +0200
commit8e8f0fa59a884c7dc7c54d0711861e479981ed1a (patch)
tree35224fd3da98a97eeb23d03a24e007f0397514d2 /bash-completion
parentsignames: Make input char buffers const (diff)
downloadkernel-qcow2-util-linux-8e8f0fa59a884c7dc7c54d0711861e479981ed1a.tar.gz
kernel-qcow2-util-linux-8e8f0fa59a884c7dc7c54d0711861e479981ed1a.tar.xz
kernel-qcow2-util-linux-8e8f0fa59a884c7dc7c54d0711861e479981ed1a.zip
unshare: Add --kill-child option.
This allows to conveniently kill the entire process tree below the forked program, a common problem when scripting tasks that need to reliably fully terminate without leaving reparented subprocesses behind. The example added to the man page shows the most common use. Implemented using prctl(PR_SET_PDEATHSIG, ...).
Diffstat (limited to 'bash-completion')
-rw-r--r--bash-completion/unshare1
1 files changed, 1 insertions, 0 deletions
diff --git a/bash-completion/unshare b/bash-completion/unshare
index cd73c1d6c..3fda4a194 100644
--- a/bash-completion/unshare
+++ b/bash-completion/unshare
@@ -27,6 +27,7 @@ _unshare_module()
--user
--cgroup
--fork
+ --kill-child
--mount-proc
--map-root-user
--propagation