mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
mount: remove extra calls of mntns_collect_root()
Now mntns_collect_root() should be called each time when we need to get a root of a specified namespace and we don't need to call it for initializing the global variable. Signed-off-by: Andrey Vagin <avagin@openvz.org> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
4ec63d53e1
commit
20003300d8
@@ -1251,9 +1251,6 @@ static int restore_task_with_children(void *_arg)
|
||||
if (close_old_fds(current))
|
||||
exit(1);
|
||||
|
||||
if (mntns_collect_root(getpid()) < 0)
|
||||
exit(1);
|
||||
|
||||
if (root_prepare_shared())
|
||||
goto err;
|
||||
}
|
||||
|
Reference in New Issue
Block a user