]> git.ipfire.org Git - thirdparty/lxc.git/commit
count the number of tasks in the container
authorDaniel Lezcano <daniel.lezcano@free.fr>
Thu, 8 Apr 2010 07:44:23 +0000 (09:44 +0200)
committerDaniel Lezcano <dlezcano@fr.ibm.com>
Thu, 8 Apr 2010 07:44:23 +0000 (09:44 +0200)
commite0f888d910c2680acf6267391f88ab75ef66771f
tree20ab5acf993e624cfeca062c42b3f323060766ff
parentf78a1f32f41f6acbbf0b78e6498736dbd22e2301
count the number of tasks in the container

This patch adds a function to count the number of tasks in the
container. The result is not reliable as it may change with a fork
or an exit, but in some cases, for example, there is only one task, or
the container is frozen, the result is accurate.

Signed-off-by: Daniel Lezcano <dlezcano@fr.ibm.com>
src/lxc/cgroup.c
src/lxc/cgroup.h