[issue8407] expose signalfd(2) and sigprocmask(2) in the signal module

Jean-Paul Calderone report at bugs.python.org
Sat May 1 17:22:05 CEST 2010


Jean-Paul Calderone <exarkun at twistedmatrix.com> added the comment:

One open question regarding interaction with threading.  sigprocmask's behavior in a multithreaded program is unspecified.  pthread_sigmask should be used instead.  I could either expose both of these and let the caller choose, or I could make signal.sigprocmask use pthread_sigmask if it's available, and fall back to sigprocmask.  I don't see any disadvantages of doing the latter, and the former seems like it would create an attractive nuisance.  However, I don't have much experience with sigprocmask; I'm only interested in it because of its use in combination with signalfd.

----------

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


More information about the Python-bugs-list mailing list