]> err.no Git - linux-2.6/commit
cgroups: document the effect of attaching PID 0 to a cgroup
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 4 Jul 2008 16:59:55 +0000 (09:59 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Fri, 4 Jul 2008 17:40:08 +0000 (10:40 -0700)
commitbef67c5a7d3a9c45e091e36625c09c0c811e2672
tree9e26d7896d6bf96ac8f65cf1b47955601705a921
parent4e0d13cbb71de2b1baf71ddd3c14f7ba8da810e5
cgroups: document the effect of attaching PID 0 to a cgroup

Document that a pid of zero(0) can be used to refer to the current task
when attaching a task to a cgroup, as in the following usage:

# echo 0 > /dev/cgroup/tasks

This is consistent with existing cpuset behavior.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Acked-by: Paul Jackson <pj@sgi.com>
Acked-by: Dhaval Giani <dhaval@linux.vnet.ibm.com>
Cc: Paul Menage <menage@google.com>
Cc: Balbir Singh <balbir@in.ibm.com>
Cc: Andrea Righi <righi.andrea@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Documentation/cgroups.txt