From: Mikio Hara Date: Fri, 15 Jan 2016 07:37:47 +0000 (+0900) Subject: runtime: readjust signal code for dragonfly-2.6 and above X-Git-Tag: go1.6rc1~104 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=aea4de80f9137915fa70b114d541833094b88a23;p=gostls13.git runtime: readjust signal code for dragonfly-2.6 and above Also adds missing nosplit to unminit. Fixes #13964. Change-Id: I07d93a8c872a255a89f91f808b66c889f0a6a69c Reviewed-on: https://go-review.googlesource.com/18658 Reviewed-by: Ian Lance Taylor --- diff --git a/src/runtime/os1_dragonfly.go b/src/runtime/os1_dragonfly.go index 5b146209dc..a739ef5a72 100644 --- a/src/runtime/os1_dragonfly.go +++ b/src/runtime/os1_dragonfly.go @@ -168,6 +168,7 @@ func minit() { } // Called from dropm to undo the effect of an minit. +//go:nosplit func unminit() { if getg().m.newSigstack { signalstack(nil) diff --git a/src/runtime/os2_dragonfly.go b/src/runtime/os2_dragonfly.go index ccad82f013..6ea2da0393 100644 --- a/src/runtime/os2_dragonfly.go +++ b/src/runtime/os2_dragonfly.go @@ -6,7 +6,7 @@ package runtime const ( _NSIG = 33 - _SI_USER = 0x10001 + _SI_USER = 0 _SS_DISABLE = 4 _RLIMIT_AS = 10 _SIG_BLOCK = 1