man ip-netns: Fix shifted layout at bottom of 'ip netns del'

Signed-off-by: Vadim Kochan <vadim4j@gmail.com>
This commit is contained in:
Vadim Kochan 2015-04-02 18:08:03 +03:00 committed by Stephen Hemminger
parent 8b90a9907e
commit bbf2f7c66d
1 changed files with 8 additions and 2 deletions

View File

@ -116,12 +116,18 @@ $ ip netns exec net0 SOME_PROCESS_IN_BACKGROUND
$ ip netns del net0 $ ip netns del net0
.RE .RE
.RS
and eth0 will appear in the default netns only after SOME_PROCESS_IN_BACKGROUND and eth0 will appear in the default netns only after SOME_PROCESS_IN_BACKGROUND
will exit or will be killed. To prevent this the processes running in net0 will exit or will be killed. To prevent this the processes running in net0
should be killed before deleting the netns: should be killed before deleting the netns:
$ ip netns pids net0 | xargs kill .RE
$ ip netns del net0 .RS 10
$ ip netns pids net0 | xargs kill
.RE
.RS 10
$ ip netns del net0
.RE
.TP .TP
.B ip netns set NAME NETNSID - assign an id to a peer network namespace .B ip netns set NAME NETNSID - assign an id to a peer network namespace