Commit aea4de80 authored by Mikio Hara's avatar Mikio Hara

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/18658Reviewed-by: 's avatarIan Lance Taylor <iant@golang.org>
parent 91b910b7
...@@ -168,6 +168,7 @@ func minit() { ...@@ -168,6 +168,7 @@ func minit() {
} }
// Called from dropm to undo the effect of an minit. // Called from dropm to undo the effect of an minit.
//go:nosplit
func unminit() { func unminit() {
if getg().m.newSigstack { if getg().m.newSigstack {
signalstack(nil) signalstack(nil)
......
...@@ -6,7 +6,7 @@ package runtime ...@@ -6,7 +6,7 @@ package runtime
const ( const (
_NSIG = 33 _NSIG = 33
_SI_USER = 0x10001 _SI_USER = 0
_SS_DISABLE = 4 _SS_DISABLE = 4
_RLIMIT_AS = 10 _RLIMIT_AS = 10
_SIG_BLOCK = 1 _SIG_BLOCK = 1
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment