]> Cypherpunks repositories - gostls13.git/commitdiff
runtime: handle abort note on Plan 9
authorDavid du Colombier <0intro@gmail.com>
Sat, 24 Oct 2015 16:14:51 +0000 (18:14 +0200)
committerDavid du Colombier <0intro@gmail.com>
Mon, 26 Oct 2015 22:12:30 +0000 (22:12 +0000)
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>

src/runtime/signal_plan9.go

index 302f1561b8a0c3125e66e1a13c0624bd0ce9a755..19247f27536d829f51bf19f3fe32eb38b0019c49 100644 (file)
@@ -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"},
 }