wireguard: selftests: tie socket waiting to target pid
authorJason A. Donenfeld <Jason@zx2c4.com>
Tue, 4 Feb 2020 21:17:29 +0000 (22:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Wed, 5 Feb 2020 13:14:18 +0000 (14:14 +0100)
commit88f404a9b1d75388225b1c67b6dd327cb2182777
treed0e8cc6334f15c7c087c1007a1a549cf298e71e3
parent4a2ef721e60f0d2babeb29dbcfe05904b53ea19e
wireguard: selftests: tie socket waiting to target pid

Without this, we wind up proceeding too early sometimes when the
previous process has just used the same listening port. So, we tie the
listening socket query to the specific pid we're interested in.

Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
tools/testing/selftests/wireguard/netns.sh