]> Cypherpunks repositories - gostls13.git/commit
runtime: for c-archive/c-shared, install signal handlers synchronously
authorIan Lance Taylor <iant@golang.org>
Sat, 26 Dec 2015 17:51:59 +0000 (09:51 -0800)
committerIan Lance Taylor <iant@golang.org>
Sat, 9 Jan 2016 00:58:38 +0000 (00:58 +0000)
commit21b4f234c716cb35ca0c7e02f81b760cce8f7f37
tree93365efee4bf6a668719d304603e519a492c4e74
parent0b3807a2a370a55e06040cafa85a76b90d06eb6f
runtime: for c-archive/c-shared, install signal handlers synchronously

The previous behaviour of installing the signal handlers in a separate
thread meant that Go initialization raced with non-Go initialization if
the non-Go initialization also wanted to install signal handlers.  Make
installing signal handlers synchronous so that the process-wide behavior
is predictable.

Update #9896.

Change-Id: Ice24299877ec46f8518b072a381932d273096a32
Reviewed-on: https://go-review.googlesource.com/18150
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: David Crawshaw <crawshaw@golang.org>
23 files changed:
misc/cgo/testcarchive/main.c
src/os/signal/doc.go
src/runtime/os1_darwin.go
src/runtime/os1_dragonfly.go
src/runtime/os1_freebsd.go
src/runtime/os1_linux.go
src/runtime/os1_nacl.go
src/runtime/os1_netbsd.go
src/runtime/os1_openbsd.go
src/runtime/os1_plan9.go
src/runtime/os3_solaris.go
src/runtime/proc.go
src/runtime/rt0_darwin_386.s
src/runtime/rt0_darwin_amd64.s
src/runtime/rt0_darwin_arm.s
src/runtime/rt0_darwin_arm64.s
src/runtime/rt0_linux_386.s
src/runtime/rt0_linux_amd64.s
src/runtime/rt0_linux_arm.s
src/runtime/rt0_linux_arm64.s
src/runtime/signal1_unix.go
src/runtime/signal2_unix.go
src/runtime/signal_windows.go