]> git.proxmox.com Git - mirror_lxc.git/commit
cgmanager: attach: never use 'all' controller
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 27 May 2015 10:05:16 +0000 (10:05 +0000)
committerStéphane Graber <stgraber@ubuntu.com>
Tue, 2 Jun 2015 23:05:22 +0000 (19:05 -0400)
commit27be573155c3f6559db22b446e6cb10cb7e5ab54
tree393f766ead81495a78efdab0195ded1ec1beaa38
parentde0dc533073ce82701e392e97b86029dc0857338
cgmanager: attach: never use 'all' controller

We were using 'all' controller if current was in all the
same cgroup.  That doesn't suffice.  We'd have to check
the target.  At that point we may as well just attach
controller by controller.

An optimization to consider is to check the /proc/initpid/cgroup
for all identical controllers.  Let's start by just getting it
right.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
Acked-by: Stéphane Graber <stgraber@ubuntu.com>
src/lxc/cgmanager.c