From 8e8f0fa59a884c7dc7c54d0711861e479981ed1a Mon Sep 17 00:00:00 2001 From: Niklas Hambüchen Date: Tue, 19 Sep 2017 20:39:00 +0200 Subject: 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, ...). --- bash-completion/unshare | 1 + 1 file changed, 1 insertion(+) (limited to 'bash-completion') 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 -- cgit v1.2.3-55-g7522