From: Karel Zak Date: Fri, 3 Jul 2020 11:03:58 +0000 (+0200) Subject: unshare: (man) add note about signals on --fork X-Git-Tag: v2.36-rc2~16 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=2e5819df6c8b4ebff766f1b217747108c054d6cf;p=thirdparty%2Futil-linux.git unshare: (man) add note about signals on --fork Addresses: https://github.com/karelzak/util-linux/pull/1087 Signed-off-by: Karel Zak --- diff --git a/sys-utils/unshare.1 b/sys-utils/unshare.1 index dccd7a01e5..b193ec5b23 100644 --- a/sys-utils/unshare.1 +++ b/sys-utils/unshare.1 @@ -142,8 +142,11 @@ namespace is created by a bind mount. The \fB\-\-monotonic\fP and offset in the time namespace. .TP .BR \-f , " \-\-fork" -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. +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. +Note that when \fBunshare\fR is waiting for the child process, +then it ignores SIGINT and SIGTERM and does not forward any signals to the +child. It is necessary to send signals to the child process. .TP .B \-\-keep\-caps When the \fB\-\-user\fP option is given, ensure that capabilities granted