epoll throws IOError rather than select.error
This commit is contained in:
parent
aa059d6f2f
commit
2530c62050
|
@ -310,6 +310,10 @@ def epoll_poller(timeout=0.0, map=None):
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
r = epoll_poller.pollster.poll(timeout)
|
r = epoll_poller.pollster.poll(timeout)
|
||||||
|
except IOError as e:
|
||||||
|
if e.errno != EINTR:
|
||||||
|
raise
|
||||||
|
r = []
|
||||||
except select.error, err:
|
except select.error, err:
|
||||||
if err.args[0] != EINTR:
|
if err.args[0] != EINTR:
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Reference in New Issue
Block a user