mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34: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:
|
||||
if err[0] != EINTR:
|
||||
raise
|
||||
r = []; w = []; e = []
|
||||
|
||||
if DEBUG:
|
||||
print r,w,e
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue