[Python-checkins] CVS: python/dist/src/Lib asyncore.py,1.28.4.1,1.28.4.2

Michael Hudson mwh@users.sourceforge.net
Fri, 15 Mar 2002 02:32:09 -0800


Update of /cvsroot/python/python/dist/src/Lib
In directory usw-pr-cvs1:/tmp/cvs-serv32403

Modified Files:
      Tag: release22-maint
	asyncore.py 
Log Message:
backport akuchling's checkin of
    revision 1.29 of asyncore.py

[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


Index: asyncore.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/asyncore.py,v
retrieving revision 1.28.4.1
retrieving revision 1.28.4.2
diff -C2 -d -r1.28.4.1 -r1.28.4.2
*** asyncore.py	15 Mar 2002 01:35:19 -0000	1.28.4.1
--- asyncore.py	15 Mar 2002 10:32:07 -0000	1.28.4.2
***************
*** 81,84 ****
--- 81,85 ----
              if err[0] != EINTR:
                  raise
+             r = []; w = []; e = []
  
          if DEBUG: