]> git.ipfire.org Git - thirdparty/util-linux.git/commit
Manual pages: unshare.1: fix examples, part 2
authorMichael Kerrisk <mtk.manpages@gmail.com>
Sat, 23 May 2020 06:43:24 +0000 (08:43 +0200)
committerKarel Zak <kzak@redhat.com>
Mon, 25 May 2020 12:16:45 +0000 (14:16 +0200)
commitd83194e34b6b7590add2a7b9ec6eb04315124712
treebb18de960d3e7fab86afb0fda095d12023b6053a
parent34eede25c5d6d62fe88aed6718d82a60ed45229c
Manual pages: unshare.1: fix examples, part 2

The explanation of the --kill-child example was quite confused and
also the example shell demo was broken because of quoting issues.

It is not the case that the *children* of 'program' would adopted by
init, but rather that 'program' itself (which would be running as PID
1 inside the namespace and is a child of 'unshare') would be adopted
by init.

Rework the --kill-child example. Add a lot more explanation, and
expand the example shell session to give the reader a much better
picture of what is going on.

Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
sys-utils/unshare.1