aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/sigaction_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'src/runtime/sigaction_linux.go')
-rw-r--r--src/runtime/sigaction_linux.go11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/runtime/sigaction_linux.go b/src/runtime/sigaction_linux.go
index 0b2afb01eb..4775f64123 100644
--- a/src/runtime/sigaction_linux.go
+++ b/src/runtime/sigaction_linux.go
@@ -6,6 +6,11 @@
package runtime
-// rt_sigaction calls the rt_sigaction system call. It is implemented in assembly.
-//go:noescape
-func rt_sigaction(sig uintptr, new, old *sigactiont, size uintptr) int32
+// This version is used on Linux systems on which we don't use cgo to
+// call the C version of sigaction.
+
+//go:nosplit
+//go:nowritebarrierrec
+func sigaction(sig uint32, new, old *sigactiont) {
+ sysSigaction(sig, new, old)
+}