From 2530c62050e9bcf26381233fa0f4b95f6f90e62e Mon Sep 17 00:00:00 2001 From: Peter Surda Date: Fri, 21 Jul 2017 07:49:34 +0200 Subject: [PATCH] epoll throws IOError rather than select.error --- src/network/asyncore_pollchoose.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/network/asyncore_pollchoose.py b/src/network/asyncore_pollchoose.py index 07b2c120..c1296744 100644 --- a/src/network/asyncore_pollchoose.py +++ b/src/network/asyncore_pollchoose.py @@ -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