From: Dhaval Giani Date: Thu, 14 Aug 2008 15:05:48 +0000 (+0000) Subject: Fix configuration assert when multiple controllers are enabled X-Git-Tag: v0.34~238 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1752f94cf625c48c2004203d135df1778f0a1e5f;p=thirdparty%2Flibcgroup.git Fix configuration assert when multiple controllers are enabled 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 Signed-off-by: Dhaval Giani git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@152 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- diff --git a/config.c b/config.c index 9ad26ad0..b0d46049 100644 --- 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; }