diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-03-30 19:59:21 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-03-30 19:59:21 (GMT) |
commit | 41eba224de4d4752346ab051b6a411ec6f4a29fb (patch) | |
tree | 0bf84e5e39ab19990fa9ae6a0382d99ff5992558 /Lib/selectors.py | |
parent | 3c7d6e069331ceab0da6b794e4069f07bb3d4aac (diff) | |
download | cpython-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.py | 6 |
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: |