aboutsummaryrefslogtreecommitdiff
path: root/src/runtime/signal_plan9.go
diff options
context:
space:
mode:
authorDavid du Colombier <0intro@gmail.com>2015-10-24 18:14:51 +0200
committerDavid du Colombier <0intro@gmail.com>2015-10-26 22:12:30 +0000
commitd093bf489b81310b2ce4a78e4a233868e961d0d8 (patch)
treec383133d44299878a3327e7562ed136322bf5767 /src/runtime/signal_plan9.go
parentd18167fefea5e77388dbc1e323e8527b58494185 (diff)
downloadgo-d093bf489b81310b2ce4a78e4a233868e961d0d8.tar.gz
go-d093bf489b81310b2ce4a78e4a233868e961d0d8.zip
runtime: handle abort note on Plan 9
Implement an abort note on Plan 9, as an equivalent of the SIGABRT signal on other operating systems. Updates #11975. Change-Id: I010c9b10f2fbd2471aacd1d073368d975a2f0592 Reviewed-on: https://go-review.googlesource.com/16300 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org> Run-TryBot: David du Colombier <0intro@gmail.com> TryBot-Result: Gobot Gobot <gobot@golang.org>
Diffstat (limited to 'src/runtime/signal_plan9.go')
-rw-r--r--src/runtime/signal_plan9.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/runtime/signal_plan9.go b/src/runtime/signal_plan9.go
index 302f1561b8..19247f2753 100644
--- a/src/runtime/signal_plan9.go
+++ b/src/runtime/signal_plan9.go
@@ -51,4 +51,7 @@ var sigtable = [...]sigTabT{
// Alarms can be handled if desired, otherwise they're ignored.
{_SigNotify, "alarm"},
+
+ // Aborts can be handled if desired, otherwise they cause a stack trace.
+ {_SigNotify + _SigThrow, "abort"},
}