diff options
author | Ian Lance Taylor <iant@golang.org> | 2015-12-26 09:51:59 -0800 |
---|---|---|
committer | Ian Lance Taylor <iant@golang.org> | 2016-01-09 00:58:38 +0000 |
commit | 21b4f234c716cb35ca0c7e02f81b760cce8f7f37 (patch) | |
tree | 93365efee4bf6a668719d304603e519a492c4e74 /src/runtime/signal_windows.go | |
parent | 0b3807a2a370a55e06040cafa85a76b90d06eb6f (diff) | |
download | go-21b4f234c716cb35ca0c7e02f81b760cce8f7f37.tar.gz go-21b4f234c716cb35ca0c7e02f81b760cce8f7f37.zip |
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>
Diffstat (limited to 'src/runtime/signal_windows.go')
-rw-r--r-- | src/runtime/signal_windows.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/signal_windows.go b/src/runtime/signal_windows.go index 5cfa20fbfe..ab7183fe6b 100644 --- a/src/runtime/signal_windows.go +++ b/src/runtime/signal_windows.go @@ -191,7 +191,7 @@ func setBadSignalMsg() { // Following are not implemented. -func initsig() { +func initsig(preinit bool) { } func sigenable(sig uint32) { |