]> git.ipfire.org Git - thirdparty/lxc.git/commit
Silence lxc-unshare warning when removing cgroup
authorSerge E. Hallyn <serge.hallyn@canonical.com>
Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Tue, 9 Aug 2011 14:51:01 +0000 (16:51 +0200)
commit0b9c21ab8ab3e7a1eacdb087950fe9f680053486
treefe9a30ab7a8afbdbbffc111dddc940c6fcbf6401
parent0a1259d99f5ed53ff268b5f4ff0607129562ae96
Silence lxc-unshare warning when removing cgroup

If ns cgroup is mounted, then when lxc-unshare runs, the kernel automatically
creates a new cgroup for the task.  So lxc-unshare tries to delete it.  But
if ns cgroup is not mounted, that cgroup does not get created, and now
lxc-unshare spits an error.
Author: Serge Hallyn <serge.hallyn@canonical.com>
Bug-Ubuntu: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/819319
Forwarded: no

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c
src/lxc/cgroup.h
src/lxc/lxc_unshare.c