[New-bugs-announce] [issue8407] expose signalfd(2) and sigprocmask(2) in the signal module
report at bugs.python.org
Thu Apr 15 07:00:39 CEST 2010
New submission from Jean-Paul Calderone <exarkun at twistedmatrix.com>:
Linux offers the signalfd syscall since 2.6.22 (with minor changes afterwards). This call allows signals to be handled as bytes read out of a file descriptor, rather than as interruptions to the flow of a program. Quite usefully, this file descriptor can be select()'d on (or poll()'d, epoll()'d, etc) alongside other "normal" file descriptors.
In order to effectively use signalfd(), the signals in question must be blocked, though. So it makes sense to expose sigprocmask(2) at the same time, in order to allow this blocking to be set up.
components: Extension Modules, Library (Lib)
title: expose signalfd(2) and sigprocmask(2) in the signal module
type: feature request
versions: Python 2.7
Python tracker <report at bugs.python.org>
More information about the New-bugs-announce