Skip to content

container: fix another race reading cgroup freeze#539

Merged
rhatdan merged 1 commit intocontainers:masterfrom
giuseppe:fix-freeze-read
Nov 11, 2020
Merged

container: fix another race reading cgroup freeze#539
rhatdan merged 1 commit intocontainers:masterfrom
giuseppe:fix-freeze-read

Conversation

@giuseppe
Copy link
Copy Markdown
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
Copy Markdown
Member

rhatdan commented Nov 11, 2020

LGTM

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