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

container: fix another race reading cgroup freeze #539

Merged
merged 1 commit into from
Nov 11, 2020

Conversation

giuseppe
Copy link
Member

if the cgroup is deleted between the open("cgroup.freeze") and the
read(2), the read fails with ENODEV. In this case, ignore the error
and report it as "stopped".

Enable the same logic also for the cgroupfs driver.

Closes: #537

Signed-off-by: Giuseppe Scrivano [email protected]

if the cgroup is deleted between the open("cgroup.freeze") and the
read(2), the read fails with ENODEV.  In this case, ignore the error
and report it as "stopped".

Enable the same logic also for the cgroupfs driver.

Closes: containers#537

Signed-off-by: Giuseppe Scrivano <[email protected]>
@rhatdan
Copy link
Member

rhatdan commented Nov 11, 2020

LGTM

@rhatdan rhatdan merged commit 2963675 into containers:master Nov 11, 2020
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.

cgroup.freeze flake is back
2 participants