Skip to content

Commit

Permalink
unshare: (man) add note about signals on --fork
Browse files Browse the repository at this point in the history
Addresses: #1087
Signed-off-by: Karel Zak <kzak@redhat.com>
  • Loading branch information
karelzak committed Jul 3, 2020
1 parent 9120e39 commit 2e5819d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions sys-utils/unshare.1
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 2e5819d

Please sign in to comment.