[CRIU] [PATCH 01/39] mount: close old descriptor in mntns_collect_root

Andrey Vagin avagin at openvz.org
Mon Apr 21 07:23:11 PDT 2014


Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 mount.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/mount.c b/mount.c
index eb2e982..93b3fe3 100644
--- a/mount.c
+++ b/mount.c
@@ -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
-- 
1.8.5.3



More information about the CRIU mailing list