New submission from Gregory P. Smith <g...@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 <rep...@bugs.python.org> <https://bugs.python.org/issue32443> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com