]> git.ipfire.org Git - thirdparty/lxc.git/commit
recursively delete cgroups on container shutdown
authorSerge Hallyn <serge.hallyn@canonical.com>
Thu, 2 Feb 2012 21:52:35 +0000 (15:52 -0600)
committerDaniel Lezcano <daniel.lezcano@free.fr>
Sun, 26 Feb 2012 09:44:40 +0000 (10:44 +0100)
commit341a9bd8aca9c404d0d59f7036d81d47de0d6f5a
tree6ae40f864fbaff28256c37571398d1c367c88112
parent581092fc657735b08251e902255453a7d53f3a33
recursively delete cgroups on container shutdown

If a container has created its own cgroups, i.e. by running libvirtd,
then if we don't delete all child cgroups, then the rmdir will fail.

Signed-off-by: Serge Hallyn <serge.hallyn@canonical.com>
Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c