[issue10478] Ctrl-C locks up the interpreter
report at bugs.python.org
Fri Dec 3 14:30:41 CET 2010
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
Ok, so +1 to apply immediatly your patch which "fixes" the deadlock. If someone is motived to make Buffered* classes reentrant, (s)he can remove this exception.
io and signal documentation should also be improved to indicate that using buffered I/O in a signal handler may raise a RuntimeError on reentrant call (and give an example to explain the problem?).
About the patch: can't you move "&& (self->owner = PyThread_get_thread_ident(), 1) )" in _enter_buffered_busy()?
Python tracker <report at bugs.python.org>
More information about the Python-bugs-list