[New-bugs-announce] [issue32443] Add Linux's signalfd() to the signal module

Gregory P. Smith report at bugs.python.org
Thu Dec 28 20:27:20 EST 2017


New submission from Gregory P. Smith <greg at krypto.org>:

We should add a wrapper for both signalfd() and a function to read and decode the structure from the fd into a dataclass.

The code we need to build such a thing from appears to exist in BSD & MIT licensed form in:

PyPI contains two extension module wrappers of just the system call:
 https://pypi.python.org/pypi/signalfd/
 https://pypi.python.org/pypi/python-signalfd

Why add this Linux specific API to the standard library?  I believe I could use signalfd() within the subprocess module to get rid of the need to busy-loop-poll to see when children have exited on subprocess.Popen.wait() calls with a timeout.  [a proof of concept using the above modules would be a good idea first]

----------
components: Library (Lib)
messages: 309151
nosy: gregory.p.smith
priority: normal
severity: normal
stage: needs patch
status: open
title: Add Linux's signalfd() to the signal module
type: enhancement
versions: Python 3.7, Python 3.8

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue32443>
_______________________________________


More information about the New-bugs-announce mailing list