[CRIU] [PATCH cr 6/6] dump: dump zombies from another PID namespace

Andrey Vagin avagin at openvz.org
Fri Sep 7 10:59:40 EDT 2012


The problem is to get a virtual pid for zombies.
This code gets two list of children from current and target pidns.
Then it removes alive task from the second list and dumps remaining zombies.

A procfs from a target pidns is needed for dumping zombies,
crtools gets it from parasite code.

v2: Fix comment and get proc fd from a root task

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c    |  104 ++++++++++++++++++++++++++++++++++++++++++++++++++--------
 test/zdtm.sh |    4 +-
 2 files changed, 92 insertions(+), 16 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0006-dump-dump-zombies-from-another-PID-namespace.patch
Type: text/x-patch
Size: 3647 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120907/7abd37d9/0006-dump-dump-zombies-from-another-PID-namespace.bin


More information about the CRIU mailing list