epoll throws IOError rather than select.error

master
Peter Šurda 6 years ago
parent aa059d6f2f
commit 2530c62050
Signed by untrusted user: PeterSurda
GPG Key ID: 0C5F50C0B5F37D87

@ -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

Loading…
Cancel
Save