Skip to content
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

signal: Handle more signals to make ParseSignal containerd compatible #71

Merged
merged 1 commit into from Jul 23, 2021

Conversation

kzys
Copy link
Member

@kzys kzys commented Jul 23, 2021

We'd like to use moby/sys/signal in containerd, but containerd currently
supports more signals. Adding them here closes the gap.

Signed-off-by: Kazuyoshi Kato katokazu@amazon.com

"HUP": syscall.Signal(windows.SIGHUP),
"INT": syscall.Signal(windows.SIGINT),
"QUIT": syscall.Signal(windows.SIGQUIT),
"SIGILL": syscall.Signal(windows.SIGILL),
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You probably need "ILL", not "SIGILL".

Suggested change
"SIGILL": syscall.Signal(windows.SIGILL),
"ILL": syscall.Signal(windows.SIGILL),

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep. Fixed in the last revision.

"HUP": syscall.Signal(windows.SIGHUP),
"INT": syscall.Signal(windows.SIGINT),
"QUIT": syscall.Signal(windows.SIGQUIT),
"SIGILL": syscall.Signal(windows.SIGILL),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is SIGSIGILL since 2017. Looks like a typo though...

https://github.com/containerd/containerd/pull/743/files

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah I think it's likely a typo in the original.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Especially since CI is passing now 😆

We'd like to use moby/sys/signal in containerd, but containerd currently
supports more signals. Adding them here closes the gap.

Signed-off-by: Kazuyoshi Kato <katokazu@amazon.com>
Copy link
Member

@samuelkarp samuelkarp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Copy link
Member

@cpuguy83 cpuguy83 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@cpuguy83 cpuguy83 merged commit 8a51b5c into moby:master Jul 23, 2021
@thaJeztah thaJeztah changed the title Handle more signals to make ParseSignal containerd compatible signal: Handle more signals to make ParseSignal containerd compatible Nov 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants