mirror of
https://github.com/python/cpython.git
synced 2025-12-05 00:52:25 +00:00
[Bug #517554] When a signal happens during the select call in
asyncore.poll, the select fails with EINTR, which the code catches. However, the code fails to clear the r/w/e arrays (like poll3 does), which means it acts as if every descriptor had received all possible events. Bug report and patch by Cesar Eduardo Barros
This commit is contained in:
parent
1bf71172f8
commit
cc5f5b2686
1 changed files with 1 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ def poll (timeout=0.0, map=None):
|
||||||
except select.error, err:
|
except select.error, err:
|
||||||
if err[0] != EINTR:
|
if err[0] != EINTR:
|
||||||
raise
|
raise
|
||||||
|
r = []; w = []; e = []
|
||||||
|
|
||||||
if DEBUG:
|
if DEBUG:
|
||||||
print r,w,e
|
print r,w,e
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue