]> Cypherpunks repositories - gostls13.git/commit
runtime/cgo: fixes for calling sigaction in C
authorIan Lance Taylor <iant@golang.org>
Wed, 16 Nov 2016 21:51:32 +0000 (13:51 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 16 Nov 2016 23:10:33 +0000 (23:10 +0000)
commitfe057c1478c4309f715d689127125cabbb4efe08
treee3db9e1b89b8459683fca6038cc1ef54904b2876
parent8dc47e3b3a939a39e5cc3ea59f4848f50fd0cb7b
runtime/cgo: fixes for calling sigaction in C

Zero out the sigaction structs, in case the sa_restorer field is set.

Clear the SA_RESTORER flag; it is part of the kernel interface, not the
libc interface.

Fixes #17947.

Change-Id: I610348ce3c196d3761cf2170f06c24ecc3507cf7
Reviewed-on: https://go-review.googlesource.com/33331
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Reviewed-by: Bryan Mills <bcmills@google.com>
src/runtime/cgo/gcc_sigaction.c