epoll throws IOError rather than select.error

This commit is contained in:
Peter Šurda 2017-07-21 07:49:34 +02:00
parent aa059d6f2f
commit 2530c62050
Signed by: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

View File

@ -310,6 +310,10 @@ def epoll_poller(timeout=0.0, map=None):
pass
try:
r = epoll_poller.pollster.poll(timeout)
except IOError as e:
if e.errno != EINTR:
raise
r = []
except select.error, err:
if err.args[0] != EINTR:
raise