[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:
Andrew M. Kuchling 2002-03-08 18:19:59 +00:00
parent 1bf71172f8
commit cc5f5b2686

View file

@ -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