diff options
author | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-09 16:26:15 +0000 |
---|---|---|
committer | Dhaval Giani <dhaval@linux.vnet.ibm.com> | 2009-01-09 16:26:15 +0000 |
commit | 216ef3fa583b751c3f76f8812f947fe3b61c58d9 (patch) | |
tree | 8f9740b493eacc6914571dcc9e24a18162dbcd41 /tests/libcgrouptest.h | |
parent | 8b53bf5107f1e7540e91972b2bebf8484fa43fa5 (diff) | |
download | libcg-216ef3fa583b751c3f76f8812f947fe3b61c58d9.tar.gz libcg-216ef3fa583b751c3f76f8812f947fe3b61c58d9.tar.xz libcg-216ef3fa583b751c3f76f8812f947fe3b61c58d9.zip |
libcgrouptest:attach exclusive pid support in test_cgroup_attach_task() function
From: Sudhir Kumar <skumar@linux.vnet.ibm.com>
The function test_attach_task_pid() was attaching the process calling the
function to a group and did not have support to take any pid for attaching
it to a group. This patch does that.
Signed-off-by: Sudhir Kumar <skumar@linux.vnet.ibm.com>
Acked-by: Dhaval Giani <dhaval@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@310 4f4bb910-9a46-0410-90c8-c897d4f1cd53
Diffstat (limited to 'tests/libcgrouptest.h')
-rw-r--r-- | tests/libcgrouptest.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/libcgrouptest.h b/tests/libcgrouptest.h index 62f0c68..36edc26 100644 --- a/tests/libcgrouptest.h +++ b/tests/libcgrouptest.h @@ -110,8 +110,8 @@ extern char mountpoint[], mountpoint2[]; /* Functions to test each API */ void test_cgroup_init(int retcode, int i); void test_cgroup_attach_task(int retcode, struct cgroup *cgroup1, - const char *group1, const char *group2, - int k, int i); + const char *group1, const char *group2, pid_t pid, + int k, int i); struct cgroup *create_new_cgroup_ds(int ctl, const char *grpname, int value_type, struct cntl_val_t cval, struct uid_gid_t ids, int i); void test_cgroup_create_cgroup(int retcode, struct cgroup *cgrp, |