diff --git a/cr-restore.c b/cr-restore.c index 4a1fe4ec9..24d9f8b95 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -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;