summaryrefslogtreecommitdiffstats
path: root/Lib/asyncore.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:38:00 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-03-30 19:38:00 (GMT)
commit3c7d6e069331ceab0da6b794e4069f07bb3d4aac (patch)
tree42284993b3b0cdc127c69218140a2650e73b8e60 /Lib/asyncore.py
parentfa09beb1508f782b51ba0a2815c07e0294f40e95 (diff)
downloadcpython-3c7d6e069331ceab0da6b794e4069f07bb3d4aac.zip
cpython-3c7d6e069331ceab0da6b794e4069f07bb3d4aac.tar.gz
cpython-3c7d6e069331ceab0da6b794e4069f07bb3d4aac.tar.bz2
Issue #23485: select.poll.poll() is now retried when interrupted by a signal
Diffstat (limited to 'Lib/asyncore.py')
-rw-r--r--Lib/asyncore.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/Lib/asyncore.py b/Lib/asyncore.py
index 5578dda..3b51f0f 100644
--- a/Lib/asyncore.py
+++ b/Lib/asyncore.py
@@ -179,10 +179,8 @@ def poll2(timeout=0.0, map=None):
flags |= select.POLLOUT
if flags:
pollster.register(fd, flags)
- try:
- r = pollster.poll(timeout)
- except InterruptedError:
- r = []
+
+ r = pollster.poll(timeout)
for fd, flags in r:
obj = map.get(fd)
if obj is None: