]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: use libc for sigaction syscalls when possible
authorBryan C. Mills <bcmills@google.com>
Wed, 9 Nov 2016 20:28:24 +0000 (15:28 -0500)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Nov 2016 05:38:38 +0000 (05:38 +0000)
commit1f605175b0044d69ac2364c24f515344c9866fd6
tree56b5acc2c2d9f27204dbeb3f853c4ef250b65fee
parentc69233be84eee26d1ea15869b86d76aad602d693
runtime/cgo: use libc for sigaction syscalls when possible

This ensures that runtime's signal handlers pass through the TSAN and
MSAN libc interceptors and subsequent calls to the intercepted
sigaction function from C will correctly see them.

Fixes #17753.

Change-Id: I9798bb50291a4b8fa20caa39c02a4465ec40bb8d
Reviewed-on: https://go-review.googlesource.com/33142
Reviewed-by: Ian Lance Taylor <iant@golang.org>
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
misc/cgo/testsanitizers/test.bash
misc/cgo/testsanitizers/tsan8.go [new file with mode: 0644]
src/runtime/cgo/gcc_sigaction.c [new file with mode: 0644]
src/runtime/cgo/sigaction.go [new file with mode: 0644]
src/runtime/cgo_mmap.go
src/runtime/cgo_sigaction.go [new file with mode: 0644]
src/runtime/msan_amd64.s
src/runtime/os_linux.go
src/runtime/sigaction_linux.go [new file with mode: 0644]
src/runtime/sys_linux_amd64.s