[CRIU] [PATCH 18/20] rst: Don't forget to close nsfd after setns

Pavel Emelyanov xemul at parallels.com
Tue Apr 22 09:39:43 PDT 2014


Signed-off-by: Pavel Emelyanov <xemul at parallels.com>
---
 mount.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/mount.c b/mount.c
index d2b994e..bb5ff0c 100644
--- a/mount.c
+++ b/mount.c
@@ -1594,6 +1594,8 @@ int restore_task_mnt_ns(struct ns_id *nsid, pid_t pid)
 			pr_perror("Unable to change mount namespace");
 			return -1;
 		}
+
+		close(fd);
 		return 0;
 	}
 
-- 
1.7.6.5


More information about the CRIU mailing list