summaryrefslogtreecommitdiffstats
path: root/Lib/selectors.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:59:21 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:59:21 (GMT)
commit41eba224de4d4752346ab051b6a411ec6f4a29fb (patch)
tree0bf84e5e39ab19990fa9ae6a0382d99ff5992558 /Lib/selectors.py
parent3c7d6e069331ceab0da6b794e4069f07bb3d4aac (diff)
downloadcpython-41eba224de4d4752346ab051b6a411ec6f4a29fb.zip
cpython-41eba224de4d4752346ab051b6a411ec6f4a29fb.tar.gz
cpython-41eba224de4d4752346ab051b6a411ec6f4a29fb.tar.bz2
Issue #23485: select.epoll.poll() is now retried when interrupted by a signal
Diffstat (limited to 'Lib/selectors.py')
-rw-r--r--Lib/selectors.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/selectors.py b/Lib/selectors.py
index bf48ebf..2a0a44c 100644
--- a/Lib/selectors.py
+++ b/Lib/selectors.py
@@ -423,11 +423,9 @@ if hasattr(select, 'epoll'):
# FD is registered.
max_ev = max(len(self._fd_to_key), 1)
+ fd_event_list = self._epoll.poll(timeout, max_ev)
+
ready = []
- try:
- fd_event_list = self._epoll.poll(timeout, max_ev)
- except InterruptedError:
- return ready
for fd, event in fd_event_list:
events = 0
if event & ~select.EPOLLIN: