-
Notifications
You must be signed in to change notification settings - Fork 17.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
os/signal: Reset doesn't reset ignored signals #46321
Comments
https://golang.org/cl/3580 described |
CC @ianlancetaylor via https://dev.golang.org/owners To be clear, |
At a quick look |
According to my tests (and a real life bug) this is not just with https://play.golang.org/p/NQlbXjitE17 The last run of EDIT: this is particular bad as ignored signals are inherited by child processes, so unmasking them before forking the child doesn't work. This can lead to quite unexpected behavior, especially if default signals like |
Change https://go.dev/cl/649155 mentions this issue: |
I've been bitten by this a number of times now, which motivated me to look into it more. As @bluec0re mentioned, there appears to be now way to recover from a Would a fix for this be accepted, perhaps with an associated |
Patches are always welcome. I don't see why this needs a I see that you sent a patch which is currently marked as "work in progress". You can send it to me when it is ready for review. Thanks. |
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
Yes, including go1.17 devel
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
https://play.golang.org/p/vYlTzluIuBL
What did you expect to see?
The last line of the output being
false
What did you see instead?
The last line is
true
.See https://groups.google.com/g/golang-nuts/c/W5NNNC0h5Zc for a discussion.
Thanks to Brian Candler for the simplified example.
The text was updated successfully, but these errors were encountered: