[Patches] [ python-Patches-1314396 ] ensure lock is released if exception is raised

SourceForge.net noreply at sourceforge.net
Thu Oct 6 04:18:56 CEST 2005


Patches item #1314396, was opened at 2005-10-06 02:18
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=305470&aid=1314396&group_id=5470

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Library (Lib)
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: Eric Blossom (eblossom)
Assigned to: Nobody/Anonymous (nobody)
Summary: ensure lock is released if exception is raised

Initial Comment:
If an exception (typically KeyboardInterrupt) is raised
in Thread.join, self.__block will be left locked, and
any later attempt to join will block forever.  The bug
is easy to trigger if you provide a timeout to join. 
This patch ensures that the lock is released.

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

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


More information about the Patches mailing list