mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
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>
This commit is contained in:
parent
176cd48e57
commit
c3189cee71
13 changed files with 107 additions and 106 deletions
|
|
@ -604,6 +604,7 @@ const (
|
|||
_SigGoExit // cause all runtime procs to exit (only used on Plan 9).
|
||||
_SigSetStack // add SA_ONSTACK to libc handler
|
||||
_SigUnblock // unblocked in minit
|
||||
_SigIgn // _SIG_DFL action is to ignore the signal
|
||||
)
|
||||
|
||||
// Layout of in-memory per-function information prepared by linker
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue