[CRIU] [PATCH 17/37] restore: close PROC_FD_OFF before calling sigreturn

Andrey Vagin avagin at openvz.org
Fri Apr 18 07:42:55 PDT 2014


mntns_collect_root() uses PROC_FD_OFF, so we need to close it.

Signed-off-by: Andrey Vagin <avagin at openvz.org>
---
 cr-restore.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/cr-restore.c b/cr-restore.c
index c448752..c9b1fc2 100644
--- a/cr-restore.c
+++ b/cr-restore.c
@@ -2617,6 +2617,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
 		goto err;
 
 	close_image_dir();
+	close_service_fd(PROC_FD_OFF);
 	close_service_fd(ROOT_FD_OFF);
 
 	__gcov_flush();
-- 
1.8.5.3



More information about the CRIU mailing list