You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is working as designed and intended. We could add a mechanism to shut down that goroutine when no more signals are being handled, but very few programs would ever execute that code path, and even fewer would care about the extra goroutine. It doesn't seem worth it.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes.
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://go.dev/play/p/Y6Lq4oaMSoi
What did you expect to see?
No leaked goroutine.
What did you see instead?
A goroutine leak:
I don't know whether this is intentional or not. Is there a way to prevent this leakage?
This previous issue might be related to this one: #21576
The text was updated successfully, but these errors were encountered: