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

Add ErrCgroupNotExist #4410

Merged
merged 1 commit into from
Sep 24, 2024

Conversation

lifubang
Copy link
Member

For some rootless container, runc has no access to cgroup, But the container is still running. So we should return the ErrNotRunning and ErrCgroupNotExist error seperatlly.

Follow up of #4395, please see #4395 (comment)

@@ -699,7 +699,7 @@ func setupPersonality(config *configs.Config) error {
// signalAllProcesses returns ErrNotRunning when the cgroup does not exist.
Copy link
Member

Choose a reason for hiding this comment

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

This comment needs to be updated too

For some rootless container, runc has no access to cgroup,
But the container is still running. So we should return the
`ErrNotRunning` and `ErrCgroupNotExist` error seperatlly.

Signed-off-by: lifubang <lifubang@acmcoder.com>
Copy link
Contributor

@kolyshkin kolyshkin left a comment

Choose a reason for hiding this comment

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

lgtm

@kolyshkin kolyshkin merged commit 47756ed into opencontainers:main Sep 24, 2024
42 checks passed
@lifubang lifubang deleted the feat-add-ErrCgroupNotExist branch October 15, 2024 05:40
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.

3 participants