From 1603195881d3d7902a24cca1861f5808d50202db Mon Sep 17 00:00:00 2001 From: Balbir Singh Date: Wed, 16 Apr 2008 10:53:55 +0000 Subject: api.c | 23 +++++++++++++++-------- libcg.h | 4 ++-- tests/libcg_ba.cpp | 2 +- Added additional parameters for create and destroy cgroup. Fixed a cg_init segfault (faulty, if-else check) Signed-off-by: Balbir Singh git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/branches/balbir@15 4f4bb910-9a46-0410-90c8-c897d4f1cd53 --- tests/libcg_ba.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/libcg_ba.cpp b/tests/libcg_ba.cpp index 873f12f..6406dda 100644 --- a/tests/libcg_ba.cpp +++ b/tests/libcg_ba.cpp @@ -98,7 +98,7 @@ struct cgroup *cg::makenode(const string &name, const string &task_uid, ccg->control_uid = cuid; ccg->control_gid = cgid; - ret = cg_create_cgroup(ccg); + ret = cg_create_cgroup(ccg, 1); if (ret) { cout << "cg create group failed " << errno << endl; ret = cg_delete_cgroup(ccg, 1); -- cgit