Commit 0f7e6928 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Andrei Vagin

proc: Close CR_PROC_FD_OFF and TRANSPORT_FD_OFF later

CR_PROC_FD_OFF is need for accessing to foreign tasks
fds, and will be used in the future.

TRANSPORT_FD_OFF is for uniformity.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 7952c6a7
......@@ -3382,6 +3382,8 @@ static int sigreturn_restore(pid_t pid, struct task_restore_args *task_args, uns
close_image_dir();
close_proc();
close_service_fd(TRANSPORT_FD_OFF);
close_service_fd(CR_PROC_FD_OFF);
close_service_fd(ROOT_FD_OFF);
close_service_fd(USERNSD_SK);
close_service_fd(FDSTORE_SK_OFF);
......
......@@ -1308,7 +1308,6 @@ int prepare_fds(struct pstree_item *me)
if (rsti(me)->fdt)
futex_inc_and_wake(&rsti(me)->fdt->fdt_lock);
out:
close_service_fd(CR_PROC_FD_OFF);
tty_fini_fds();
return ret;
}
......
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