aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/os_plan9.go
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2016-09-27 22:24:51 -0700
committerIan Lance Taylor <iant@golang.org>2016-09-28 13:12:47 +0000
commiteb268cb321edf6e2bbaa832acb2e61db6b081f98 (patch)
tree7c2fd37a99424eec125732b6280f58d8af143072 /src/runtime/os_plan9.go
parent594cddd62598dcfc1fe6ee1c3e5978063f498dc1 (diff)
downloadgo-eb268cb321edf6e2bbaa832acb2e61db6b081f98.tar.gz
go-eb268cb321edf6e2bbaa832acb2e61db6b081f98.zip
runtime: minor simplifications to signal code
Change setsig, setsigstack, getsig, raise, raiseproc to take uint32 for signal number parameter, as that is the type mostly used for signal numbers. Same for dieFromSignal, sigInstallGoHandler, raisebadsignal. Remove setsig restart parameter, as it is always either true or irrelevant. Don't check the handler in setsigstack, as the only caller does that anyhow. Don't bother to convert the handler from sigtramp to sighandler in getsig, as it will never be called when the handler is sigtramp or sighandler. Don't check the return value from rt_sigaction in the GNU/Linux version of setsigstack; no other setsigstack checks it, and it never fails. Change-Id: I6bbd677e048a77eddf974dd3d017bc3c560fbd48 Reviewed-on: https://go-review.googlesource.com/29953 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_plan9.go')
-rw-r--r--src/runtime/os_plan9.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/os_plan9.go b/src/runtime/os_plan9.go
index 333f2221a2..4aa1a0d43d 100644
--- a/src/runtime/os_plan9.go
+++ b/src/runtime/os_plan9.go
@@ -467,7 +467,7 @@ func badsignal2() {
exits(&_badsignal[0])
}
-func raisebadsignal(sig int32) {
+func raisebadsignal(sig uint32) {
badsignal2()
}