Commit cc5f5b26 authored by Andrew M. Kuchling's avatar Andrew M. Kuchling

[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
parent 1bf71172
......@@ -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
......
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