Commit 2afba051 authored by Guido van Rossum's avatar Guido van Rossum

Add the same fix to poll() that was made in Python 2.3 and

ThreadedAsync/LoopCallback.py: when select() is interrupted by a
signal handler, don't attempt to read all file descriptors.
parent 6ec3b089
......@@ -80,6 +80,8 @@ def poll (timeout=0.0, map=None):
except select.error, err:
if err[0] != EINTR:
raise
else:
return
if DEBUG:
print r,w,e
......
......@@ -80,6 +80,8 @@ def poll (timeout=0.0, map=None):
except select.error, err:
if err[0] != EINTR:
raise
else:
return
if DEBUG:
print r,w,e
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment