]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
Fix configuration assert when multiple controllers are enabled
authorDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 14 Aug 2008 15:05:48 +0000 (15:05 +0000)
committerDhaval Giani <dhaval@linux.vnet.ibm.com>
Thu, 14 Aug 2008 15:05:48 +0000 (15:05 +0000)
Since we support multiple controllers, asserting is no longer a good
idea.

TODO: Support other controllers, memory, cpu and cpuacct (possibly
cpusets as well). Well, this code is obsolete and will be replaced
by the newer cgroup API.

Signed-off-by: Balbir Singh <balbir@linux.vnet.ibm.com>
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@152 4f4bb910-9a46-0410-90c8-c897d4f1cd53

config.c

index 9ad26ad015df26603840034bbed96aaec05bb4f9..b0d4604961561254018b94298a33ad16ba54c6fe 100644 (file)
--- a/config.c
+++ b/config.c
@@ -196,7 +196,7 @@ int cg_controller_handle_option(struct cg_group *cg_group,
        if (!strncmp(cg_controller_name, "cpu", strlen("cpu"))) {
                ret = cg_cpu_controller_settings(cg_group, group_path);
        } else
-               assert(0);
+               printf("config for %s pending\n", cg_controller_name);
        return ret;
 }