From 5bdc1719c5cb19d044ef4e057176cf13352535a3 Mon Sep 17 00:00:00 2001 From: David Wilson Date: Tue, 15 May 2018 04:15:32 +0100 Subject: [PATCH] issue #249: epoll() raises IOError for EINTR, not select.error. --- mitogen/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mitogen/core.py b/mitogen/core.py index 30d2c911..9fc3b82f 100644 --- a/mitogen/core.py +++ b/mitogen/core.py @@ -235,7 +235,7 @@ def io_op(func, *args): while True: try: return func(*args), False - except (select.error, OSError): + except (select.error, OSError, IOError): e = sys.exc_info()[1] _vv and IOLOG.debug('io_op(%r) -> OSError: %s', func, e) if e[0] == errno.EINTR: