There is a bug which causes the initialised configuration will be bogus or does not work at all and majority of tools does not work well. The situation happens when multiple mount points are mounted for one hierarchy and the hierarchy have multiple controllers:
example: # lssubsys cpu,cpuacct /mnt/cgroups/cpu cpuacct /cgroup/cpu memory /cgroup/memory # cat /proc/mounts | grep cgroup cpu /mnt/cgroups/cpu cgroup rw,relatime,cpuacct,cpu 0 0 cgroup /cgroup/cpu cgroup rw,relatime,cpuacct,cpu 0 0 cgroup /cgroup/memory cgroup rw,relatime,memory 0 0 Signed-off-by: Ivana Hutarova Varekova <[email protected]> --- 0 files changed, 0 insertions(+), 0 deletions(-) diff --git a/src/api.c b/src/api.c index 99cc5bc..d0e8875 100644 --- a/src/api.c +++ b/src/api.c @@ -826,7 +826,7 @@ int cgroup_init(void) if (duplicate) { cgroup_dbg("controller %s is already mounted on %s\n", mntopt, cg_mount_table[j].path); - continue; + break; } strcpy(cg_mount_table[found_mnt].name, controllers[i]); ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
