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

Andrey Vagin avagin at openvz.org
Thu Apr 10 04:03:44 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 38c45af..89c9e6f 100644
--- a/mount.c
+++ b/mount.c
@@ -1533,6 +1533,8 @@ int mntns_collect_root(pid_t pid)
 	int ret;
 	char path[PATH_MAX + 1];
 
+	close_safe(&mntns_root);
+
 	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