mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-08-05 00:03:33 +00:00
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: Kirill Tkhai <ktkhai@virtuozzo.com> Signed-off-by: Andrei Vagin <avagin@virtuozzo.com>
This commit is contained in:
parent
75b46c9d05
commit
7d8c2d86a8
1 changed files with 3 additions and 0 deletions
|
|
@ -1117,6 +1117,9 @@ static int restore_one_zombie(CoreEntry *core)
|
|||
|
||||
pr_info("Restoring zombie with %d code\n", exit_code);
|
||||
|
||||
if (prepare_fds(current))
|
||||
return -1;
|
||||
|
||||
if (inherit_fd_fini() < 0)
|
||||
return -1;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue