Commit ec761499 authored by Kirill Tkhai's avatar Kirill Tkhai Committed by Andrei Vagin

restore: Call prepare_fds() in restore_one_zombie()

Zombie may be choosen as parent for task helper
during solving pgid dependences. In this situation,
it becomes to share fdt with the helper and it has
to call prepare_fds() to decrement fdt->nr.
Signed-off-by: 's avatarKirill Tkhai <ktkhai@virtuozzo.com>
Signed-off-by: 's avatarAndrei Vagin <avagin@virtuozzo.com>
parent 820bad96
...@@ -963,6 +963,9 @@ static int restore_one_zombie(CoreEntry *core) ...@@ -963,6 +963,9 @@ static int restore_one_zombie(CoreEntry *core)
pr_info("Restoring zombie with %d code\n", exit_code); pr_info("Restoring zombie with %d code\n", exit_code);
if (prepare_fds(current))
return -1;
if (inherit_fd_fini() < 0) if (inherit_fd_fini() < 0)
return -1; return -1;
......
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