]> Cypherpunks repositories - gostls13.git/commit
runtime: forward crashing signals to late handlers
authorElias Naur <elias.naur@gmail.com>
Sat, 19 Aug 2017 14:59:19 +0000 (16:59 +0200)
committerElias Naur <elias.naur@gmail.com>
Tue, 29 Aug 2017 07:40:19 +0000 (07:40 +0000)
commitc3189cee717a47dd7936d9f82904db72b28293f6
treee3fc16aff861b031fec26f74f79ed10ce085ff5a
parent176cd48e574817bbb912c139396324c187b31279
runtime: forward crashing signals to late handlers

CL 49590 made it possible for external signal handlers to catch
signals from a crashing Go process. This CL extends that support
to handlers registered after the Go runtime has initialized.

Updates #20392 (and possibly fix it).

Change-Id: I18eccd5e958a505f4d1782a7fc51c16bd3a4ff9c
Reviewed-on: https://go-review.googlesource.com/57291
Run-TryBot: Elias Naur <elias.naur@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
13 files changed:
src/runtime/crash_cgo_test.go
src/runtime/runtime2.go
src/runtime/signal_darwin.go
src/runtime/signal_dragonfly.go
src/runtime/signal_freebsd.go
src/runtime/signal_nacl.go
src/runtime/signal_netbsd.go
src/runtime/signal_openbsd.go
src/runtime/signal_solaris.go
src/runtime/signal_unix.go
src/runtime/sigtab_linux_generic.go
src/runtime/sigtab_linux_mipsx.go
src/runtime/testdata/testprogcgo/catchpanic.go