[CRIU] Re: [PATCH cr 1/3] crtools: link pstree_item-s in a tree (v3)
Pavel Emelyanov
xemul at parallels.com
Thu May 31 07:41:43 EDT 2012
On 05/31/2012 02:50 PM, Andrey Vagin wrote:
>
> 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(-)
>
All applied. Plz, fix my comment with renaming pstree_item's list to siblings.
More information about the CRIU
mailing list