[CRIU] [PATCH -02/38] mount: close old descriptor in mntns_collect_root

Andrey Vagin avagin at openvz.org
Fri Apr 18 12:04:09 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 c7ddfe2..2b74200 100644
--- a/mount.c
+++ b/mount.c
@@ -1516,6 +1516,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