diff options
| author | Josh Bleecher Snyder <josh@tailscale.com> | 2022-01-14 13:43:24 -0800 |
|---|---|---|
| committer | Josh Bleecher Snyder <josharian@gmail.com> | 2022-01-19 14:39:28 -0800 |
| commit | de4696da1062fc0f40301ff8b0bbf200616b016b (patch) | |
| tree | f7e0b04c1c48fa2afd4704ba813c4ff93181ea8d /control/controlknobs/controlknobs.go | |
| parent | 390490e7b10023a1ccf03da7ac415bc41d9309be (diff) | |
| download | tailscale-de4696da1062fc0f40301ff8b0bbf200616b016b.tar.xz tailscale-de4696da1062fc0f40301ff8b0bbf200616b016b.zip | |
wgengine/magicsock: fix deadlock on shutdown
This fixes a deadlock on shutdown.
One goroutine is waiting to send on c.derpRecvCh before unlocking c.mu.
The other goroutine is waiting to lock c.mu before receiving from c.derpRecvCh.
#3736 has a more detailed explanation of the sequence of events.
Fixes #3736
Signed-off-by: Josh Bleecher Snyder <josh@tailscale.com>
Diffstat (limited to 'control/controlknobs/controlknobs.go')
0 files changed, 0 insertions, 0 deletions
