]> www.infradead.org Git - users/dwmw2/openconnect.git/commit
epoll: Handle EPOLLERR as 'readable'
authorDavid Woodhouse <dwmw2@infradead.org>
Wed, 6 Apr 2022 15:42:09 +0000 (16:42 +0100)
committerDavid Woodhouse <dwmw2@infradead.org>
Wed, 6 Apr 2022 15:42:09 +0000 (16:42 +0100)
commit5a981e5c019010200f46f97aec32a9e84861968e
treec1c34faaa250ba838182f0976fe205da72103cc5
parent63e4b85b16156f7de4b0f22c339c66845f4a158e
epoll: Handle EPOLLERR as 'readable'

When we use select(), an error event on a file descriptor causes it to
be reported as readable, and some of the handlers will only clean it up
if that happens. So set the 'readable' flag on EPOLLERR too.

This is part of #389.

Signed-off-by: David Woodhouse <dwmw2@infradead.org>
mainloop.c