Skip to content

Cgroup2Manager: Fix cgroup deletions - #439

Merged
jglogan merged 1 commit into
apple:mainfrom
dcantah:loop-ebusy-cg2
Dec 9, 2025
Merged

jglogan merged 1 commit into
apple:mainfrom
dcantah:loop-ebusy-cg2

Conversation

@dcantah

@dcantah dcantah commented Dec 9, 2025 •

Copy link
Copy Markdown
Contributor

If there's any nested cgroups in the one we made for the container (commonly seen for systemd images) removeItem didn't seem to be having a grand time, even though it states it should do recursive removals. Lets roll our own, and have a small EBUSY/EAGAIN retry loop as well. This fixes LinuxContainer.stop() for any containers with nested cgs.

Context: apple/container#928

If there's any nested cgroups in the one we made for the container
(commonly seen for systemd images) removeItem didn't seem to be
having a grand time, even though it states it should do recursive
removals. Lets roll our own, and have a small EBUSY/EAGAIN retry loop
as well. This fixes LinuxContainer.stop() for any containers with nested
cgs.
@jglogan
jglogan merged commit e8aff29 into apple:main Dec 9, 2025
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.

2 participants