[CRIU] [PATCH cr] crtools: link pstree_item-s in a tree

Andrey Vagin avagin at openvz.org
Fri May 18 02:08:52 EDT 2012


because they describes a process TREE.

It's usefull, when we dump tasks from another pid namespace,
because a real pid is got from parasite. In previous version
we need to update pid in two places one is in a pstree_item and
one is in a children array.

A process tree will be necessery to restore sid and pgid,
because we should add fake tasks in a tree. For example if
a sesion leader is absent.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-dump.c         |  234 ++++++++++++++++++++++++++++++++--------------------
 cr-restore.c      |   99 +++++++++++-----------
 cr-show.c         |   21 ++----
 include/crtools.h |    9 +-
 include/image.h   |    2 +-
 5 files changed, 206 insertions(+), 159 deletions(-)

-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-crtools-link-pstree_item-s-in-a-tree.patch
Type: text/x-patch
Size: 19791 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120518/8704e8cb/0001-crtools-link-pstree_item-s-in-a-tree.bin


More information about the CRIU mailing list