Commit 4cd99985 authored by Pavel Emelyanov's avatar Pavel Emelyanov

rst: Brush up fake vs real tasks post-pgid restore codeflow

Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 9e7ae345
......@@ -743,9 +743,6 @@ static int restore_one_task(int pid)
int fd, ret;
CoreEntry *core;
if (current->state == TASK_HELPER)
return restore_one_fake();
fd = open_image_ro(CR_FD_CORE, pid);
if (fd < 0)
return -1;
......@@ -1095,9 +1092,10 @@ static int restore_task_with_children(void *_arg)
if (current->pgid != current->pid.virt)
restore_pgid();
if (current->state != TASK_HELPER)
restore_finish_stage(CR_STATE_RESTORE_PGID);
if (current->state == TASK_HELPER)
return restore_one_fake();
restore_finish_stage(CR_STATE_RESTORE_PGID);
return restore_one_task(current->pid.virt);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment