]> git.ipfire.org Git - thirdparty/lxc.git/commit
cgroup: don't set clone_children when it is already 1
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Thu, 19 Dec 2013 21:18:24 +0000 (15:18 -0600)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 19 Dec 2013 21:21:45 +0000 (22:21 +0100)
commit7e7243e16b5af166d6477b81755df67d1082f39b
tree783e96da4c3f7974e6ea82f453e425c7d75e417a
parent58d6a17e028fe84d5055f6e43955d4d45bbb89e3
cgroup: don't set clone_children when it is already 1

In particular, if it's already 1, and we can't change it, we currently
fail out.  That's silly.

I was going to just always continue, but if clone_children is not 1,
then the container *will* fail to start later on, so I'd rather stop
earlier on so the original cause doesn't get lost in the noise.

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