]> Cypherpunks.ru repositories - gostls13.git/commit
runtime: block console ctrlhandler when the signal is handled
authorNuno Cruces <ncruces@users.noreply.github.com>
Wed, 27 Jan 2021 19:02:37 +0000 (19:02 +0000)
committerJason A. Donenfeld <Jason@zx2c4.com>
Wed, 27 Jan 2021 19:17:38 +0000 (19:17 +0000)
commit8cfa01943a7f43493543efba81996221bb0f27f8
tree7caf7a35f3145ecae153baadec6e4bd58ee4aadd
parentff9e8364c6501e9092564dd1e1fadf27f91b2fbb
runtime: block console ctrlhandler when the signal is handled

Fixes #41884

I can confirm this change fixes my issue.
I can't confirm that this doesn't break any and everything else.
I see that this code has been tweaked repeatedly, so I would really welcome guidance into further testing.

Change-Id: I1986dd0c2f30cfe10257f0d8c658988d6986f7a6
GitHub-Last-Rev: 92f02c96973e12f1472511bcf3c5ebb36c6b0440
GitHub-Pull-Request: golang/go#41886
Reviewed-on: https://go-review.googlesource.com/c/go/+/261057
Run-TryBot: Jason A. Donenfeld <Jason@zx2c4.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Jason A. Donenfeld <Jason@zx2c4.com>
Trust: Alex Brainman <alex.brainman@gmail.com>
src/runtime/os_windows.go
src/runtime/signal_windows_test.go
src/runtime/testdata/testwinsignal/main.go [new file with mode: 0644]