Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/checkpoint-restore/criu.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'criu/cr-restore.c')
-rw-r--r--criu/cr-restore.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/criu/cr-restore.c b/criu/cr-restore.c
index 78f2a9701..974202f16 100644
--- a/criu/cr-restore.c
+++ b/criu/cr-restore.c
@@ -1350,9 +1350,12 @@ static inline int fork_with_pid(struct pstree_item *item)
item->pid->state = ca.core->tc->task_state;
- /* Zombie task's cg_set is stored in task_core */
+ /*
+ * Zombie tasks' cgroup is not dumped/restored.
+ * cg_set == 0 is skipped in prepare_task_cgroup()
+ */
if (item->pid->state == TASK_DEAD)
- rsti(item)->cg_set = ca.core->tc->cg_set;
+ rsti(item)->cg_set = 0;
else
rsti(item)->cg_set = ca.core->thread_core->cg_set;