[Patches] [ python-Patches-410709 ] Condition.wait() and KeyboardInterrupt

noreply@sourceforge.net noreply@sourceforge.net
Sun, 25 Mar 2001 10:01:33 -0800


Patches item #410709, was updated on 2001-03-22 21:46
You can respond by visiting: 
http://sourceforge.net/tracker/?func=detail&atid=305470&aid=410709&group_id=5470

Category: Modules
Group: 2.0.1 bugfix
Status: Open
Priority: 5
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: Condition.wait() and KeyboardInterrupt

Initial Comment:
>My problem is: Condition.wait() is not protected 
against
>KeyboardInterrupt. Fix is below.
>
>Regards,
>Oleg.
>
>-----------------------------
>#python 2.0, threading.py:
>
>...
>class _Condition(_Verbose):
>...
>    def wait(self, timeout=None):
>...
>        saved_state = self._release_save()
># line to be inserted
>        try:
>...
># line to be inserted
>        finally:
>            self._acquire_restore(saved_state)
>


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

>Comment By: Martin v. Löwis (loewis)
Date: 2001-03-25 10:01

Message:
Logged In: YES 
user_id=21627

Is that something that is already fixed in 2.1? If not, the
Group should be changed to None: 2.0.1 is for patches that
are *only* meant for 2.0.1, i.e. who should not appear in
later releases.

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

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