diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-14 15:05:48 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2008-08-14 15:05:48 +0000 |
commit | 1752f94cf625c48c2004203d135df1778f0a1e5f (patch) | |
tree | 89b7c9890055a2e66622847cfe84ec50b31748f6 | |
parent | e8cd34f2439ebb4601c8bda1be51cd94029547c0 (diff) | |
download | libcg-1752f94cf625c48c2004203d135df1778f0a1e5f.tar.gz libcg-1752f94cf625c48c2004203d135df1778f0a1e5f.tar.xz libcg-1752f94cf625c48c2004203d135df1778f0a1e5f.zip |
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 <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
-rw-r--r-- | config.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; } |