[issue1975] signals not always delivered to main thread, since other threads have the signal unmasked

Adam Olsen report at bugs.python.org
Mon Dec 14 23:20:39 CET 2009


Adam Olsen <rhamph at gmail.com> added the comment:

A better solution would be to block all signals by default, then unblock
specific ones you expect.  This avoids races (as undeliverable signals
are simply deferred.)

Note that readline is not threadsafe anyway, so it doesn't necessarily
need to allow calls from the non-main thread.  Maybe somebody is using
that way, dunno.

----------

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


More information about the Python-bugs-list mailing list