]> git.proxmox.com Git - mirror_lxc.git/commit
cgroups: adjust previous commit
authorSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 29 Jan 2014 09:40:39 +0000 (09:40 +0000)
committerSerge Hallyn <serge.hallyn@ubuntu.com>
Wed, 29 Jan 2014 09:56:28 +0000 (09:56 +0000)
commit934b1673cda3f4fc17d66cfe3f429d7fafe3f4a6
treec7232c7aba50ce6b14fdc87ba8b0ed28b7c0a226
parentd703c2b15ad39a5a0df4a2b788321481d56c93cf
cgroups: adjust previous commit

Remove a memory leak on error path.

Only try to initialize cpuset if cgroup.clonechildren does not exist.

Bump the max value we read from cpuset.{cpus,mems} to 1024.

If cpuset.cpus or .mems is already initialized but is too long, don't fail.

If parent's cpuset.cpus or .mems is too long, record an error and fail.
If anyone actually runs into this, we can simply allocate the required
length as needed, but we don't expect anyone to run into this.

Signed-off-by: Serge Hallyn <serge.hallyn@ubuntu.com>
src/lxc/cgroup.c
src/lxc/cgroup.h