[CRIU] [PATCH cr 1/3] crtools: link pstree_item-s in a tree (v3)
Andrey Vagin
avagin at openvz.org
Thu May 31 06:50:10 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.
v2: fix rollback actions
v3: fix comments from Pavel Emelyanov
* add macros for_each_pstree_item
* and a few bugs
Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
cr-dump.c | 222 ++++++++++++++++++++++++++++++++---------------------
cr-restore.c | 94 +++++++++++------------
cr-show.c | 24 ++----
include/crtools.h | 12 ++-
include/image.h | 2 +-
5 files changed, 196 insertions(+), 158 deletions(-)
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-crtools-link-pstree_item-s-in-a-tree-v3.patch
Type: text/x-patch
Size: 19572 bytes
Desc: not available
Url : http://openvz.org/pipermail/criu/attachments/20120531/40bcadc0/0001-crtools-link-pstree_item-s-in-a-tree-v3-0001.bin
More information about the CRIU
mailing list