]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070)
authorBenjamin Peterson <benjamin@python.org>
Wed, 20 Nov 2019 04:39:14 +0000 (20:39 -0800)
committerGitHub <noreply@github.com>
Wed, 20 Nov 2019 04:39:14 +0000 (20:39 -0800)
commit7483451577916e693af6d20cf520b2cc7e2174d2
tree54fdd671a4513a4cf938f1438ce53823909b02db
parentbe143ec99674ba38c5811f34cdb85ef39c2dc8f8
closes bpo-38712: Add signal.pidfd_send_signal. (GH-17070)

This exposes a Linux-specific syscall for sending a signal to a process
identified by a file descriptor rather than a pid.

For simplicity, we don't support the siginfo_t parameter to the syscall. This
parameter allows implementing a pidfd version of rt_sigqueueinfo(2), which
Python also doesn't support.
Doc/library/signal.rst
Doc/whatsnew/3.9.rst
Lib/test/test_signal.py
Misc/NEWS.d/next/Library/2019-11-05-21-10-12.bpo-38712.ezJ0TP.rst [new file with mode: 0644]
Modules/clinic/signalmodule.c.h
Modules/signalmodule.c