STINNER Victor <victor.stin...@haypocalc.com> added the comment:

Le lundi 18 avril 2011 à 10:40 +0000, STINNER Victor a écrit :
> Attached patch should fix this issue:
> 
>  - signal_handler() and PyErr_SetInterrupt() only call Py_AddPendingCall() on 
> the first signal (if is_tripped is zero): it should fix the deadlock and it 
> is a micro optimization (win-win !)

Tested on OSX: yes, it does fix this issue.

Should I apply the fix on 2.7, 3.1, 3.2 and 3.3? (or only 3.3)

----------
title: signal_handler() is not reentrant: deadlock in Py_AddPendingCall() -> 
test_signals() of test_threadsignals failure on Mac OS X

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue11768>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to