[CRIU] [PATCH 2/7] sfd: mount -- Don't forget to close ROOT_FD_OFF in mntns_get_root_fd
Cyrill Gorcunov
gorcunov at openvz.org
Mon May 29 13:15:00 PDT 2017
From: Cyrill Gorcunov <gorcunov at virtuozzo.com>
Signed-off-by: Cyrill Gorcunov <gorcunov at virtuozzo.com>
---
criu/mount.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/criu/mount.c b/criu/mount.c
index 634491310428..81e49acb928c 100644
--- a/criu/mount.c
+++ b/criu/mount.c
@@ -3159,6 +3159,7 @@ int mntns_get_root_fd(struct ns_id *mntns)
if (fd < 0)
return -1;
+ close_service_fd(ROOT_FD_OFF);
return mntns_set_root_fd(mntns->ns_pid, fd);
}
--
2.7.4
More information about the CRIU
mailing list