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

> These two passages are in contradiction to each other.

By default, a thread signal can receive any signal and the signal handler 
implemented in C will be called in the context of the thread.

CPython ensures that a signal handler implemented in Python and installed by 
signal.signal() will be called in the main thread. It uses a signal handler 
implemented in C which only store the notification and will be the Python 
signal handler later (as early as possible).

pthread_sigmask() can be used to mask some signals (or all signals) on a 
specific thread.

----------
nosy: +haypo, neologix

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

Reply via email to