mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-13 05:54:23 +08:00
selftests: netfilter: kill running process only
Avoid noise like the following: nft_flowtable.sh: line 250: kill: (4691) - No such process Signed-off-by: Fabian Frederick <fabf@skynet.be> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
This commit is contained in:
parent
dd08734d8a
commit
d8bb9abe21
@ -250,8 +250,14 @@ test_tcp_forwarding_ip()
|
||||
|
||||
sleep 3
|
||||
|
||||
if ps -p $lpid > /dev/null;then
|
||||
kill $lpid
|
||||
fi
|
||||
|
||||
if ps -p $cpid > /dev/null;then
|
||||
kill $cpid
|
||||
fi
|
||||
|
||||
wait
|
||||
|
||||
check_transfer "$ns1in" "$ns2out" "ns1 -> ns2"
|
||||
|
Loading…
Reference in New Issue
Block a user