diff options
author | Ian Lance Taylor <iant@golang.org> | 2016-09-27 07:20:10 -0700 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-09-27 17:08:29 +0000 |
commit | 097a581dc0d97efac1dfbe5d79819bbf6bf681a7 (patch) | |
tree | eb4ad196d4a24eb8c65d347112282476c4c8e73f /src/runtime/os_netbsd.go | |
parent | 60482d8a8b11a3dfdf9b582b9f666694d84bb9c4 (diff) | |
download | go-097a581dc0d97efac1dfbe5d79819bbf6bf681a7.tar.gz go-097a581dc0d97efac1dfbe5d79819bbf6bf681a7.zip |
runtime: simplify signalstack by dropping nil as argument
Change the two calls to signalstack(nil) to inline the code
instead (it's two lines).
Change-Id: Ie92a05494f924f279e40ac159f1b677fda18f281
Reviewed-on: https://go-review.googlesource.com/29854
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.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/runtime/os_netbsd.go b/src/runtime/os_netbsd.go index e9c0490455..38deb26e91 100644 --- a/src/runtime/os_netbsd.go +++ b/src/runtime/os_netbsd.go @@ -192,7 +192,8 @@ func newosproc(mp *m, stk unsafe.Pointer) { // At this point all signals are blocked, so there is no race. //go:nosplit func netbsdMstart() { - signalstack(nil) + st := stackt{ss_flags: _SS_DISABLE} + sigaltstack(&st, nil) mstart() } |