Commit 67456e90 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

mount: Close old service descriptor in mntns_collect_root

We're about to collect root several times in a row, so keeping
the old one isn't required.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent e8ac085a
......@@ -1531,6 +1531,8 @@ int mntns_collect_root(pid_t pid)
int ret;
char path[PATH_MAX + 1];
close_service_fd(ROOT_FD_OFF);
if (!(current_ns_mask & CLONE_NEWNS)) {
/*
* If criu and tasks we dump live in the same mount
......
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