-
Notifications
You must be signed in to change notification settings - Fork 56
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
BUG: define ActKillThread equal to ActKill, and deprecated ActKill #90
Conversation
thaJeztah
commented
Apr 22, 2022
- Carry of / closes BUG: define ActKillThread equal to ActKill #85 (second commit is new)
- relates to / addresses BUG: unable to compile on Archlinux #89
- relates to / addresses Bump github.com/containerd/containerd from v1.6.0-beta.3 to v1.6.0-rc.1 moby/buildkit#2584
These constants are equal in libseccomp but Go definitions were defined separately. This resulted in dead code that never executed due to identical case statements in switch. Go can usually detect these error cases and refuses to build but for some reason this detection doesn’t work with cgo+gcc. Clang detects the equal constants correctly and therefore libseccomp-golang builds with clang broke after ActKillThread was added. In order to fix the clang build only removal of the switch case is needed. But I assumed that the setter/getter logic is supposed to work for ActKillThread as well and only way to ensure that is to set them equal like they are in C. Signed-off-by: Tonis Tiigi <tonistiigi@gmail.com> Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
@tonistiigi @pcmoore @kolyshkin PTAL (I see there's no CI running in this repo, so could use the eyes to double-check this is good) |
oh, never mind; I was typing too fast; it's just waiting approval to run 😂 |
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
oh, let me ping @drakenclimber as well (I see I forgot) as they reviewed the original PR; ptal 🤗 |
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, and also addresses #85 (comment)
@drakenclimber @pcmoore PTAL 🙏🏻 |
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.
Looks good to me. Thanks @thaJeztah
Acked-by: Tom Hromatka <tom.hromatka@oracle.com>
Merged at HEAD f33da4d, thank you! |
Thank you! |