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

> pthread_sigmask() can be used to avoid reentrant call, 
> but it has no effect on the second case: "signal_handler() 
> called twice at the same time in two different threads".

Same problem if we use sa_mask field of sigaction() (e.g. use 
sigfillset(&context.sa_mask); in PyOS_setsig()).

----------

_______________________________________
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