]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: block signals to the iOS mach exception handler
authorElias Naur <elias.naur@gmail.com>
Thu, 24 Mar 2016 07:39:54 +0000 (08:39 +0100)
committerElias Naur <elias.naur@gmail.com>
Thu, 24 Mar 2016 14:12:12 +0000 (14:12 +0000)
commitbe10c515003c22b8b4f0d98d1085687efbcf6955
tree376dc9d7ad897786c0bbdd795d9f427acc445449
parentb9feb91f32919e44c89205990314c9a6d3a9b2d1
runtime/cgo: block signals to the iOS mach exception handler

For darwin/arm{,64} a non-Go thread is created to convert
EXC_BAD_ACCESS to panics. However, the Go signal handler refuse to
handle signals that would otherwise be ignored if they arrive at
non-Go threads.

Block all (posix) signals to that thread, making sure that
no unexpected signals arrive to it. At least one test, TestStop in
os/signal, depends on signals not arriving on any non-Go threads.

For #14318

Change-Id: I901467fb53bdadb0d03b0f1a537116c7f4754423
Reviewed-on: https://go-review.googlesource.com/21047
Reviewed-by: David Crawshaw <crawshaw@golang.org>
src/runtime/cgo/gcc_signal_darwin_armx.c