Commit d8bb9abe authored by Fabian Frederick's avatar Fabian Frederick Committed by Pablo Neira Ayuso

selftests: netfilter: kill running process only

Avoid noise like the following:
nft_flowtable.sh: line 250: kill: (4691) - No such process
Signed-off-by: default avatarFabian Frederick <fabf@skynet.be>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent dd08734d
...@@ -250,8 +250,14 @@ test_tcp_forwarding_ip() ...@@ -250,8 +250,14 @@ test_tcp_forwarding_ip()
sleep 3 sleep 3
kill $lpid if ps -p $lpid > /dev/null;then
kill $cpid kill $lpid
fi
if ps -p $cpid > /dev/null;then
kill $cpid
fi
wait wait
check_transfer "$ns1in" "$ns2out" "ns1 -> ns2" check_transfer "$ns1in" "$ns2out" "ns1 -> ns2"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment