Commit 140d65eb authored by Saied Kazemi's avatar Saied Kazemi Committed by Pavel Emelyanov

Dismantle cgyard in non-detached restore mode.

If the --restore-detached command line option is not specified during
restore, CRIU should unmount and remove the temporary cgyard directory
tree before waiting for the restored process to exit.  Otherwise, all
the temporary cgyard mount points will remain mounted and visible.
Signed-off-by: 's avatarSaied Kazemi <saied@google.com>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent a66217a2
...@@ -1845,8 +1845,10 @@ static int restore_root_task(struct pstree_item *init) ...@@ -1845,8 +1845,10 @@ static int restore_root_task(struct pstree_item *init)
write_stats(RESTORE_STATS); write_stats(RESTORE_STATS);
if (!opts.restore_detach && !opts.exec_cmd) if (!opts.restore_detach && !opts.exec_cmd) {
fini_cgroup();
wait(NULL); wait(NULL);
}
return 0; return 0;
......
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