This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author phansen
Date 2005-03-26.14:59:25
SpamBayes Score
Marked as misclassified
Logged In: YES 

Coincidentally this issue came up in a thread in
comp.lang.python just now.  See tim one's reply at">
which indicates that "it's simply not possible for Ctrl+C to
interrupt a mutex acquire".

A workaround is to be sure to call join() with a timeout
value, inside a loop if you absolutely need an indefinite
timeout, but that won't necessarily work because of a
different problem which I just reported as bug 1171023. 
There's a workaround for that problem too though, provided
you can subclass threading.Thread: provide your own join()
which wraps the builtin one and which attempts to release
the lock safely.  I'll attach an example if I can figure out
how... there's no option to do so on this particular page in
Sourceforge. :-(
Date User Action Args
2007-08-23 14:30:28adminlinkissue1167930 messages
2007-08-23 14:30:28admincreate