Guido van Rossum added the comment: This can't be fixed directly -- the pthreads mutex is not an interruptable system call.
However there's a simple (though expensive) work-around: use a very long timeout. The timeout version of waiting for a lock is a busy-wait with a short sleep (much less than a second I recall), and it is interruptable while sleeping. Only do this when it's really important to be interruptable -- the busy-waiting makes your code use up battery power (see #1583). ---------- nosy: +gvanrossum resolution: -> wont fix status: open -> closed __________________________________ Tracker <[EMAIL PROTECTED]> <http://bugs.python.org/issue1670> __________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com