2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-30 22:05:36 +00:00

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: Saied Kazemi <saied@google.com>
Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Saied Kazemi
2015-03-16 22:03:00 +03:00
committed by Pavel Emelyanov
parent a66217a253
commit 140d65ebca

View File

@@ -1845,8 +1845,10 @@ static int restore_root_task(struct pstree_item *init)
write_stats(RESTORE_STATS);
if (!opts.restore_detach && !opts.exec_cmd)
if (!opts.restore_detach && !opts.exec_cmd) {
fini_cgroup();
wait(NULL);
}
return 0;