]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit72e44022578abaa2de41e74a81ddc38705ec677a
treed0e8cc6334f15c7c087c1007a1a549cf298e71e3
parentea89b89eb3d9fd560c6496c77a7896cd04e9a0d6
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