[Python-bugs-list] [ python-Bugs-517554 ] asyncore fails when EINTR happens in pol

noreply@sourceforge.net noreply@sourceforge.net
Thu, 14 Feb 2002 07:32:42 -0800


Bugs item #517554, was opened at 2002-02-14 07:32
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=517554&group_id=5470

Category: Python Library
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Cesar Eduardo Barros (cesarb)
Assigned to: Nobody/Anonymous (nobody)
Summary: asyncore fails when EINTR happens in pol

Initial Comment:
(submitting again -- this damn thing refused to accept
my anonymous submission a few days ago)

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.

Patch attached, tested with the python2.2 package in
Debian testing.

----------------------------------------------------------------------

You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=105470&aid=517554&group_id=5470