Commit 0a11073e authored by Boris Sukholitko's avatar Boris Sukholitko Committed by Pablo Neira Ayuso

selftests: nft_flowtable.sh: use /proc for pid checking

Some ps commands (e.g. busybox derived) have no -p option. Use /proc for
pid existence check.
Signed-off-by: default avatarBoris Sukholitko <boris.sukholitko@broadcom.com>
Signed-off-by: default avatarPablo Neira Ayuso <pablo@netfilter.org>
parent e72eeab5
...@@ -288,11 +288,11 @@ test_tcp_forwarding_ip() ...@@ -288,11 +288,11 @@ test_tcp_forwarding_ip()
sleep 3 sleep 3
if ps -p $lpid > /dev/null;then if test -d /proc/"$lpid"/; then
kill $lpid kill $lpid
fi fi
if ps -p $cpid > /dev/null;then if test -d /proc/"$cpid"/; then
kill $cpid kill $cpid
fi fi
......
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