]> Cypherpunks repositories - gostls13.git/commit
runtime: when disabling SIGPROF handler, ignore SIGPROF
authorIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2019 17:34:26 +0000 (10:34 -0700)
committerIan Lance Taylor <iant@golang.org>
Fri, 11 Oct 2019 19:57:32 +0000 (19:57 +0000)
commitfd33b2c97491f566e85e2806cb5d08e711b35400
treeb4ced81d499601d26965b2d2642a0792a150c086
parent33fac9bad86d7f3bba8926d92c33e5a0cf28061f
runtime: when disabling SIGPROF handler, ignore SIGPROF

If the runtime disables the SIGPROF handler, because this is Go code
that is linked into a non-Go program, then don't go back to the
default handling of SIGPROF; just start ignoring SIGPROF.
Otherwise the program can get killed by a stray SIGPROF that is
delivered, presumably to a different thread, after profiling is disabled.

Fixes #19320

Change-Id: Ifebae477d726699c8c82c867604b73110c1cf262
Reviewed-on: https://go-review.googlesource.com/c/go/+/200740
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: Bryan C. Mills <bcmills@google.com>
src/runtime/signal_unix.go