]> Cypherpunks repositories - gostls13.git/commit
runtime: set new m signal mask to program startup mask
authorIan Lance Taylor <iant@golang.org>
Sat, 19 Dec 2015 18:17:10 +0000 (10:17 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 6 Jan 2016 23:14:46 +0000 (23:14 +0000)
commit70c9a8187a2732f969aaaa78e0e6f139d04ef3eb
tree697f0aaffd3f5c29089adb2416d4c22543a40196
parenta7cad52e04dd1890420452b38563997930edb2ca
runtime: set new m signal mask to program startup mask

We were setting the signal mask of a new m to the signal mask of the m
that created it.  That failed when that m happened to be the one created
by ensureSigM, which sets its signal mask to only include the signals
being caught by os/signal.Notify.

Fixes #13164.
Update #9896.

Change-Id: I705c196fe9d11754e10bab9e9b2e7530ecdfa367
Reviewed-on: https://go-review.googlesource.com/18064
Reviewed-by: Russ Cox <rsc@golang.org>
src/runtime/crash_cgo_test.go
src/runtime/proc.go
src/runtime/testdata/testprogcgo/exec.go [new file with mode: 0644]