]> Cypherpunks repositories - gostls13.git/commit
os/signal: fix a deadlock with syscall.AllThreadsSyscall() use
authorAndrew G. Morgan <agm@google.com>
Sat, 12 Dec 2020 06:42:11 +0000 (22:42 -0800)
committerIan Lance Taylor <iant@golang.org>
Wed, 23 Dec 2020 05:27:04 +0000 (05:27 +0000)
commitfd6ba1c8a23d8a3fffb6c475b21f78510152ef5c
tree2ac5bbe2ea5584d0ccf54e3c12d4fb7ccb3e8fc1
parentb0b0d9828308368e9fbd59ec5de55801f568f720
os/signal: fix a deadlock with syscall.AllThreadsSyscall() use

The syscall.AllThreadsSyscall() fixup mechanism needs to cooperate
with signal handling to ensure a notetsleepg() thread can wake up
to run the mDoFixup() function.

Fixes #43149

Change-Id: I6651b25bc44a4de47d3fb71d0293d51aef8b79c7
Reviewed-on: https://go-review.googlesource.com/c/go/+/277434
Run-TryBot: Ian Lance Taylor <iant@golang.org>
TryBot-Result: Go Bot <gobot@golang.org>
Trust: Austin Clements <austin@google.com>
Reviewed-by: Ian Lance Taylor <iant@golang.org>
src/os/signal/signal_linux_test.go [new file with mode: 0644]
src/runtime/proc.go
src/runtime/sigqueue.go
src/runtime/sigqueue_plan9.go