]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
unshare: (man) add note about signals on --fork
authorKarel Zak <kzak@redhat.com>
Fri, 3 Jul 2020 11:03:58 +0000 (13:03 +0200)
committerKarel Zak <kzak@redhat.com>
Fri, 3 Jul 2020 11:03:58 +0000 (13:03 +0200)
Addresses: https://github.com/karelzak/util-linux/pull/1087
Signed-off-by: Karel Zak <kzak@redhat.com>
sys-utils/unshare.1

index dccd7a01e5e62a8b7ee7db1e4fb0afac77865de4..b193ec5b2307b68b7edec1271868918ede3c1b0a 100644 (file)
@@ -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