diff options
Diffstat (limited to 'libgo/go/runtime/signal_sighandler.go')
-rw-r--r-- | libgo/go/runtime/signal_sighandler.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libgo/go/runtime/signal_sighandler.go b/libgo/go/runtime/signal_sighandler.go index 279001b..b71b21e 100644 --- a/libgo/go/runtime/signal_sighandler.go +++ b/libgo/go/runtime/signal_sighandler.go @@ -2,7 +2,7 @@ // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. -// +build darwin dragonfly freebsd linux nacl netbsd openbsd solaris +// +build aix darwin dragonfly freebsd linux nacl netbsd openbsd solaris package runtime @@ -29,13 +29,13 @@ func sighandler(sig uint32, info *_siginfo_t, ctxt unsafe.Pointer, gp *g) { _g_ := getg() c := sigctxt{info, ctxt} + sigfault, sigpc := getSiginfo(info, ctxt) + if sig == _SIGPROF { - sigprof() + sigprof(sigpc, gp, _g_.m) return } - sigfault, sigpc := getSiginfo(info, ctxt) - flags := int32(_SigThrow) if sig < uint32(len(sigtable)) { flags = sigtable[sig].flags |