0 is a valid PID for cgroup filesystem. It moves the current
task into the cgroup. Let's try -1 instead.
Signed-off-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
git-svn-id: https://libcg.svn.sourceforge.net/svnroot/libcg/trunk@96
4f4bb910-9a46-0410-90c8-
c897d4f1cd53
* and invalid pid
* Exp outcome: error
*/
- retval = cgroup_attach_task_pid(nullcgroup, 0);
+ retval = cgroup_attach_task_pid(nullcgroup, -1);
if (retval != 0)
printf("Test[1:%2d]\tPASS: cgroup_attach_task_pid() ret: %d\n",\
++i, retval);