[CRIU] [PATCH 02/14] mntns: close_proc before clean up mounts

Andrey Vagin avagin at openvz.org
Fri Jan 11 04:22:33 EST 2013


Because /proc could not be umounted, if any its file is opened.

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 1069928..843e3bb 100644
--- a/mount.c
+++ b/mount.c
@@ -688,6 +688,8 @@ int prepare_mnt_ns(int ns_pid)
 
 	pr_info("Restoring mount namespace\n");
 
+	close_proc();
+
 	/*
 	 * The new mount namespace is filled with the mountpoint
 	 * clones from the original one. We have to umount them
-- 
1.7.11.7



More information about the CRIU mailing list