issue #249: epoll() raises IOError for EINTR, not select.error.
This commit is contained in:
parent
70376d861a
commit
5bdc1719c5
|
@ -235,7 +235,7 @@ def io_op(func, *args):
|
||||||
while True:
|
while True:
|
||||||
try:
|
try:
|
||||||
return func(*args), False
|
return func(*args), False
|
||||||
except (select.error, OSError):
|
except (select.error, OSError, IOError):
|
||||||
e = sys.exc_info()[1]
|
e = sys.exc_info()[1]
|
||||||
_vv and IOLOG.debug('io_op(%r) -> OSError: %s', func, e)
|
_vv and IOLOG.debug('io_op(%r) -> OSError: %s', func, e)
|
||||||
if e[0] == errno.EINTR:
|
if e[0] == errno.EINTR:
|
||||||
|
|
Loading…
Reference in New Issue