classification
Title: asyncore fails when EINTR happens in pol
Type: Stage:
Components: Library (Lib) Versions:
process
Status: closed Resolution: accepted
Dependencies: Superseder:
Assigned To: Nosy List: akuchling, cesarb
Priority: normal Keywords:

Created on 2002-02-14 15:32 by cesarb, last changed 2002-03-08 18:20 by akuchling. This issue is now closed.

Files
File name Uploaded Description Edit
asyncore.patch cesarb, 2002-02-14 15:32 Fix for the problem
Messages (2)
msg9275 - (view) Author: Cesar Eduardo Barros (cesarb) Date: 2002-02-14 15:32
(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.
msg9276 - (view) Author: A.M. Kuchling (akuchling) * (Python committer) Date: 2002-03-08 18:20
Logged In: YES 
user_id=11375

Looking at it, this change seems obviously correct.
Applied to CVS as rev. 1.29 of asyncore.py.  Thanks!

History
Date User Action Args
2002-02-14 15:32:40cesarbcreate