-
Notifications
You must be signed in to change notification settings - Fork 74
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
Lock to OS thread when Pdeathsig is set #86
Conversation
Codecov ReportBase: 21.52% // Head: 20.27% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #86 +/- ##
==========================================
- Coverage 21.52% 20.27% -1.26%
==========================================
Files 7 7
Lines 683 735 +52
==========================================
+ Hits 147 149 +2
- Misses 499 545 +46
- Partials 37 41 +4
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
This has been open for quite awhile. Is there anyone specific I can ping to review it? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Our apologies for the delay. Thanks for opening this; I've left a couple suggestions for changes.
a9d1516
to
51f9c48
Compare
See golang/go#27505 for context. Pdeathsig isn't safe to set without locking to the current OS thread, because otherwise thread termination will send the signal, which isn't the desired behavior. I discovered this while troubleshooting a problem that turned out to be unrelated, but I think it's necessary for correctness. Signed-off-by: Aaron Lehmann <alehmann@netflix.com>
51f9c48
to
1caf1a7
Compare
Changes since previous approval, sorry @estesp!
Not in a huge rush for this one, but would just like to get it merged so we can close the book on it. Is there anything else you need from me to push it forward? |
See golang/go#27505 for context.
Pdeathsig
isn't safe to set without locking to the current OS thread, because
otherwise thread termination will send the signal, which isn't the
desired behavior.
I discovered this while troubleshooting a problem that turned out to be
unrelated, but I think it's necessary for correctness.
cc @coryb