]> Cypherpunks repositories - gostls13.git/commit
runtime: fix FreeBSD signal handling around thread creation
authorDevon H. O'Dell <devon.odell@gmail.com>
Wed, 22 Feb 2012 04:44:09 +0000 (15:44 +1100)
committerAndrew Gerrand <adg@golang.org>
Wed, 22 Feb 2012 04:44:09 +0000 (15:44 +1100)
commitb0891060ae309a4a18035195f4b06eca0e6e584d
tree7dd22468d9aab37ac43c03b87ad30da8dc620919
parentfe5b4a2f9be7f87b1b44cd172b4403e95c5bf00d
runtime: fix FreeBSD signal handling around thread creation
Ignore signals while we are spawning a new thread. Previously, a
signal arriving just before runtime.minit setting up the signal
handler triggers a "double fault" in signal trampolining.
Fixes #3017.

R=rsc, mikioh.mikioh, minux.ma, adg
CC=golang-dev
https://golang.org/cl/5684060
src/pkg/runtime/cgo/gcc_freebsd_386.c
src/pkg/runtime/cgo/gcc_freebsd_amd64.c
src/pkg/runtime/os_freebsd.h
src/pkg/runtime/sys_freebsd_386.s
src/pkg/runtime/sys_freebsd_amd64.s
src/pkg/runtime/thread_freebsd.c