[CRIU] [PATCH 10/15] restore: save a task state on pstree_item

Andrey Vagin avagin at openvz.org
Mon Sep 23 06:33:33 EDT 2013


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/cr-restore.c b/cr-restore.c
index 71aae4d..379bc56 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -905,7 +905,9 @@ static inline int fork_with_pid(struct pstree_item *item)
 		if (check_core(ca.core, item))
 			return -1;
 
-		if (ca.core->tc->task_state == TASK_DEAD)
+		item->state = ca.core->tc->task_state;
+
+		if (item->state == TASK_DEAD)
 			item->parent->rst->nr_zombies++;
 	} else
 		ca.core = NULL;
-- 
1.8.3.1



More information about the CRIU mailing list