unix: add PidfdSendSignal on Linux

This completes the pidfd_* family of syscalls and adds a test to verify that a
child process can be terminated using the new PidfdSendSignal function.

Change-Id: I71f6a1e26518f513731e20afef02030462e9a2c0
Reviewed-on: https://go-review.googlesource.com/c/sys/+/393794
Trust: Matt Layher <mdlayher@gmail.com>
Run-TryBot: Matt Layher <mdlayher@gmail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
This commit is contained in:
Matt Layher
2022-03-19 13:42:39 +00:00
parent 2edf467146
commit a9b59b0215
18 changed files with 162 additions and 0 deletions
+2
View File
@@ -934,6 +934,8 @@ const _C__NSIG = C._NSIG
type SignalfdSiginfo C.struct_signalfd_siginfo
type Siginfo C.siginfo_t
// Terminal handling
type Termios C.termios_t