diff options
author | Niklas Hambüchen | 2017-10-14 04:31:57 +0200 |
---|---|---|
committer | Niklas Hambüchen | 2017-10-14 04:46:13 +0200 |
commit | 8b39a17c3b98d40fe8530d8c542659513e89ac56 (patch) | |
tree | 365debb3cd1f50ce56d1756b28bb8c507f80f7e1 /sys-utils/unshare.1 | |
parent | unshare: Add --kill-child option. (diff) | |
download | kernel-qcow2-util-linux-8b39a17c3b98d40fe8530d8c542659513e89ac56.tar.gz kernel-qcow2-util-linux-8b39a17c3b98d40fe8530d8c542659513e89ac56.tar.xz kernel-qcow2-util-linux-8b39a17c3b98d40fe8530d8c542659513e89ac56.zip |
unshare: Allow passing <signame> to --kill-child
Diffstat (limited to 'sys-utils/unshare.1')
-rw-r--r-- | sys-utils/unshare.1 | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1 index 420b48b73..65dc55ce9 100644 --- a/sys-utils/unshare.1 +++ b/sys-utils/unshare.1 @@ -138,10 +138,11 @@ by bind mount. Fork the specified \fIprogram\fR as a child process of \fBunshare\fR rather than running it directly. This is useful when creating a new PID namespace. .TP -.BR \-\-kill\-child -When \fBunshare\fR terminates, have \fBSIGKILL\fR be sent to the forked child process. +.BR \-\-kill\-child [ =\fIsigname ] +When \fBunshare\fR terminates, have \fIsigname\fP be sent to the forked child process. Combined with \fB--pid\fR this allows for an easy and realiable killing of the entire process tree below \fBunshare\fR. +If not given, \fIsigname\fP defaults to \fBSIGKILL\fR. This option implies \fB--fork\fR. .TP .BR \-\-mount\-proc [ =\fImountpoint ] |