2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-09-02 07:15:31 +00:00

dump: Save pstree_item's parent on item, not ppid

This is trivial change, but is required to check for pgid/sid
are in 'restorable' state, see for respective patch/code for
details.

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-04-11 22:07:47 +04:00
parent b17c49aa99
commit 2a0c526b6d
2 changed files with 19 additions and 11 deletions

View File

@@ -176,7 +176,7 @@ struct vma_area {
struct pstree_item {
struct list_head list;
pid_t pid; /* leader pid */
pid_t ppid;
struct pstree_item *parent;
int state; /* TASK_XXX constants */
int nr_children; /* number of children */
int nr_threads; /* number of threads */