diff options
| author | Kir Kolyshkin <kolyshkin@gmail.com> | 2023-09-13 00:58:20 -0700 |
|---|---|---|
| committer | Michael Knyszek <mknyszek@google.com> | 2023-11-21 22:23:07 +0000 |
| commit | ff05cdbd2bdc28ab545a5964f7f772e2ea4c5fd1 (patch) | |
| tree | 59117b27db216ec5b35ee56e6aeac7a69560a05f /src/syscall/syscall_linux_mips64x.go | |
| parent | 5a6f1b35d42dca8e3e7646ee36fa1344ce5bc775 (diff) | |
| download | go-ff05cdbd2bdc28ab545a5964f7f772e2ea4c5fd1.tar.xz | |
internal/syscall/unix: add PidFDSendSignal for Linux
CL 520266 added pidfd_send_signal linux syscall numbers to the
syscall package for the sake of a unit test.
As pidfd_send_signal will be used from the os package, let's revert the
changes to syscall package, add the pidfd_send_signal syscall numbers
and the implementation to internal/syscall/unix, and change the above
test to use it.
Updates #51246.
For #62654.
Change-Id: I862174c3c1a64baf1080792bdb3a1c1d1b417bb4
Reviewed-on: https://go-review.googlesource.com/c/go/+/528436
Run-TryBot: Kirill Kolyshkin <kolyshkin@gmail.com>
Reviewed-by: Cherry Mui <cherryyz@google.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Michael Pratt <mpratt@google.com>
Diffstat (limited to 'src/syscall/syscall_linux_mips64x.go')
| -rw-r--r-- | src/syscall/syscall_linux_mips64x.go | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/src/syscall/syscall_linux_mips64x.go b/src/syscall/syscall_linux_mips64x.go index 3bdee928ed..41106ed81f 100644 --- a/src/syscall/syscall_linux_mips64x.go +++ b/src/syscall/syscall_linux_mips64x.go @@ -11,11 +11,10 @@ import ( ) const ( - _SYS_setgroups = SYS_SETGROUPS - _SYS_clone3 = 5435 - _SYS_faccessat2 = 5439 - _SYS_pidfd_send_signal = 5424 - _SYS_fchmodat2 = 5452 + _SYS_setgroups = SYS_SETGROUPS + _SYS_clone3 = 5435 + _SYS_faccessat2 = 5439 + _SYS_fchmodat2 = 5452 ) //sys Dup2(oldfd int, newfd int) (err error) |
