]> git.ipfire.org Git - thirdparty/wireguard-go.git/commit
rwcancel: handle EINTR and EAGAIN in unixSelect()
authorAvery Pennarun <apenwarr@gmail.com>
Sat, 12 Oct 2019 07:46:13 +0000 (00:46 -0700)
committerJason A. Donenfeld <Jason@zx2c4.com>
Thu, 17 Oct 2019 13:19:17 +0000 (15:19 +0200)
commit0abb6b668c708aa84daba4b036e536fd76a8b1c5
tree50a2379626e17a1c31d521805f886d5c81b9372c
parent540d01e54ae472aa395ff1869af9de91171cdd7b
rwcancel: handle EINTR and EAGAIN in unixSelect()

On my Chromebook (Linux 4.19.44 in a VM) and on an AWS EC2
machine, select() was sometimes returning EINTR. This is
harmless and just means you should try again. So let's try
again.

This eliminates a problem where the tunnel fails to come up
correctly and the program needs to be restarted.

Signed-off-by: Avery Pennarun <apenwarr@gmail.com>
rwcancel/rwcancel.go