aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_netbsd.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-09-25 21:33:27 -0700
committerIan Lance Taylor <iant@golang.org>2016-09-26 17:22:42 +0000
commitc2735039f3ea4e44a3c1df6ef6715e83bc5257b1 (patch)
tree44d191e06d65d341b1735d0580b0fcb3578397f9 /src/runtime/os_netbsd.go
parent1906d93bfda1c7b4af51457bc0a137b8418500b7 (diff)
downloadgo-c2735039f3ea4e44a3c1df6ef6715e83bc5257b1.tar.gz
go-c2735039f3ea4e44a3c1df6ef6715e83bc5257b1.zip
runtime: unify sigtrampgo
Combine the various versions of sigtrampgo into a single function in signal_unix.go. This requires defining a fixsigcode method on sigctxt for all operating systems; it only does something on Darwin. This also requires changing the darwin/amd64 signal handler to call sigreturn itself, rather than relying on sigtrampgo to call sigreturn for it. We can then drop the Darwin sigreturn function, as it is no longer used. Change-Id: I5a0b9d2d2c141957e151b41e694efeb20e4b4b9a Reviewed-on: https://go-review.googlesource.com/29761 Run-TryBot: Ian Lance Taylor <iant@golang.org> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/runtime/os_netbsd.go')
-rw-r--r--src/runtime/os_netbsd.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/os_netbsd.go b/src/runtime/os_netbsd.go
index 81c52324ff..79d684217a 100644
--- a/src/runtime/os_netbsd.go
+++ b/src/runtime/os_netbsd.go
@@ -316,3 +316,6 @@ func sigmaskToSigset(m sigmask) sigset {
copy(set.__bits[:], m[:])
return set
}
+
+func (c *sigctxt) fixsigcode(sig uint32) {
+}