]> Cypherpunks repositories - gostls13.git/commit
runtime: unify sigtrampgo
authorIan Lance Taylor <iant@golang.org>
Mon, 26 Sep 2016 04:33:27 +0000 (21:33 -0700)
committerIan Lance Taylor <iant@golang.org>
Mon, 26 Sep 2016 17:22:42 +0000 (17:22 +0000)
commitc2735039f3ea4e44a3c1df6ef6715e83bc5257b1
tree44d191e06d65d341b1735d0580b0fcb3578397f9
parent1906d93bfda1c7b4af51457bc0a137b8418500b7
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>
13 files changed:
src/runtime/os3_solaris.go
src/runtime/os_dragonfly.go
src/runtime/os_freebsd.go
src/runtime/os_linux.go
src/runtime/os_netbsd.go
src/runtime/os_openbsd.go
src/runtime/signal_darwin.go
src/runtime/signal_freebsd.go
src/runtime/signal_openbsd.go
src/runtime/signal_sigtramp.go [deleted file]
src/runtime/signal_unix.go
src/runtime/sys_darwin_386.s
src/runtime/sys_darwin_amd64.s