[issue8844] Condition.wait() doesn't raise KeyboardInterrupt

Reid Kleckner report at bugs.python.org
Sat May 29 04:59:29 CEST 2010


Reid Kleckner <rnk at mit.edu> added the comment:

I'd like to fix it, but I don't know if I'll be able to in time.  It was something that bugged me while running the threading tests while working on Unladen.

I'm imagining (for POSIX platforms) adding some kind of check for signals when the system call returns EINTR.  If the signal handler raises an exception, like an interrupt should raise a KeyboardInterrupt, we can just give a different return code and propagate the exception.

It also seems like this behavior can be extended gradually to different platforms, since I don't have the resources to change and test every threading implementation.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8844>
_______________________________________


More information about the Python-bugs-list mailing list