You've already forked linux-rockchip
mirror of
https://github.com/armbian/linux-rockchip.git
synced 2026-01-06 11:08:10 -08:00
fcnal-test: kill hanging ping/nettest binaries on cleanup
[ Upstream commit 1f83b835a3 ]
On my box I see a bunch of ping/nettest processes hanging
around after fcntal-test.sh is done.
Clean those up before netns deletion.
Signed-off-by: Florian Westphal <fw@strlen.de>
Acked-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20211021140247.29691-1-fw@strlen.de
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
bc3e73ebb7
commit
0ad7f317b9
@@ -436,10 +436,13 @@ cleanup()
|
||||
ip -netns ${NSA} link set dev ${NSA_DEV} down
|
||||
ip -netns ${NSA} link del dev ${NSA_DEV}
|
||||
|
||||
ip netns pids ${NSA} | xargs kill 2>/dev/null
|
||||
ip netns del ${NSA}
|
||||
fi
|
||||
|
||||
ip netns pids ${NSB} | xargs kill 2>/dev/null
|
||||
ip netns del ${NSB}
|
||||
ip netns pids ${NSC} | xargs kill 2>/dev/null
|
||||
ip netns del ${NSC} >/dev/null 2>&1
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user