From 8b39a17c3b98d40fe8530d8c542659513e89ac56 Mon Sep 17 00:00:00 2001 From: Niklas Hambüchen Date: Sat, 14 Oct 2017 04:31:57 +0200 Subject: unshare: Allow passing to --kill-child --- sys-utils/unshare.1 | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'sys-utils/unshare.1') 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 ] -- cgit v1.2.3-55-g7522