diff --git a/cr-restore.c b/cr-restore.c index b8b447399..9810014de 100644 --- a/cr-restore.c +++ b/cr-restore.c @@ -1915,9 +1915,15 @@ out_kill: * otherwise an external proccesses can be killed. */ if (root_ns_mask & CLONE_NEWPID) { + int status; + /* Kill init */ if (root_item->pid.real > 0) kill(root_item->pid.real, SIGKILL); + + if (waitpid(root_item->pid.real, &status, 0) < 0) + pr_warn("Unable to wait %d: %s", + root_item->pid.real, strerror(errno)); } else { struct pstree_item *pi;