[issue12304] expose signalfd(2) in the signal module
STINNER Victor
report at bugs.python.org
Fri Jun 10 01:40:58 CEST 2011
STINNER Victor <victor.stinner at haypocalc.com> added the comment:
#8407 changed the wakeup fd: it now contains the signal number. pthread_sigmask() is now part of Python 3.3 (see also #8407).
signalfd() has advantages over the wakeup fd (msg103326):
- it is handled in the kernel, the process is not interrupted. For example, system calls cannot fail with EINTR.
- it gives much more information than the signal number (see signalfd_siginfo structure)
- it is also possible to have several signalfds, each with a different signal mask. set_wakeup_fd is limited to a single fd per-process.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12304>
_______________________________________
More information about the Python-bugs-list
mailing list