aboutsummaryrefslogtreecommitdiff
path: root/src/syscall/export_linux_test.go
diff options
context:
space:
mode:
authorKir Kolyshkin <kolyshkin@gmail.com>2023-09-13 00:58:20 -0700
committerMichael Knyszek <mknyszek@google.com>2023-11-21 22:23:07 +0000
commitff05cdbd2bdc28ab545a5964f7f772e2ea4c5fd1 (patch)
tree59117b27db216ec5b35ee56e6aeac7a69560a05f /src/syscall/export_linux_test.go
parent5a6f1b35d42dca8e3e7646ee36fa1344ce5bc775 (diff)
downloadgo-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/export_linux_test.go')
-rw-r--r--src/syscall/export_linux_test.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/syscall/export_linux_test.go b/src/syscall/export_linux_test.go
index a09db60753..3aa877cfe3 100644
--- a/src/syscall/export_linux_test.go
+++ b/src/syscall/export_linux_test.go
@@ -10,6 +10,5 @@ var (
)
const (
- Sys_GETEUID = sys_GETEUID
- Sys_pidfd_send_signal = _SYS_pidfd_send_signal
+ Sys_GETEUID = sys_GETEUID
)