Commit 36a9f316 authored by Andrey Vagin's avatar Andrey Vagin Committed by Pavel Emelyanov

restore: close PROC_FD_OFF before calling sigreturn

mntns_collect_root() uses PROC_FD_OFF, so we need to close it.
Signed-off-by: 's avatarAndrey Vagin <avagin@openvz.org>
Signed-off-by: 's avatarPavel Emelyanov <xemul@parallels.com>
parent 22d38453
......@@ -2356,7 +2356,6 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
*/
ret = parse_self_maps_lite(&self_vmas);
close_proc();
if (ret < 0)
goto err;
......@@ -2614,6 +2613,7 @@ static int sigreturn_restore(pid_t pid, CoreEntry *core)
goto err;
close_image_dir();
close_proc();
close_service_fd(ROOT_FD_OFF);
__gcov_flush();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment