]> 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)
commit644497371dfc27e040ab147772b9e69b5df348e2
treed0e8cc6334f15c7c087c1007a1a549cf298e71e3
parentba543bf3b95ec1d9502a7e17740c0ca5a55eb203
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