Commit 41d3d0ac by Ian Lance Taylor

runtime: fix setting of isarchive

    
    When I updated to Go 1.8, the initsig function moved from
    signal1_unix.go to signal_unix.go, and lost a gccgo-specific change in
    the move.  Add it back.
    
    This would have been caught by the misc/cgo/testcarchive tests in the
    gc repository, but we don't run those in the gccgo repository.  We
    should fix that, somehow.
    
    Reviewed-on: https://go-review.googlesource.com/35839

From-SVN: r244947
parent fda6ee70
f8c451ed42fd71b85afab54a33fc321df0ff3b0b 2c62d5223e814887801b1540162c72b90299d910
The first line of this file holds the git revision number of the last The first line of this file holds the git revision number of the last
merge done from the gofrontend repository. merge done from the gofrontend repository.
...@@ -66,6 +66,11 @@ var signalsOK bool ...@@ -66,6 +66,11 @@ var signalsOK bool
//go:nosplit //go:nosplit
//go:nowritebarrierrec //go:nowritebarrierrec
func initsig(preinit bool) { func initsig(preinit bool) {
if preinit {
// preinit is only passed as true if isarchive should be true.
isarchive = true
}
if !preinit { if !preinit {
// It's now OK for signal handlers to run. // It's now OK for signal handlers to run.
signalsOK = true signalsOK = true
......
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