mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-22 01:31:34 +00:00
restore: call close_pid_proc() if a child is shared a parent fd table
There are a number of global variables around this descriptor (e.g. open_proc_fd) and their values are saved in memory which are not shared between processes. travis-ci: success for Dump and restore nested network namespaces (rev4) Signed-off-by: Andrei Vagin <avagin@virtuozzo.com> Reviewed-by: Dmitry Safonov <dsafonov@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
parent
5759076cea
commit
bbbe4f264a
1 changed files with 3 additions and 0 deletions
|
|
@ -1233,6 +1233,9 @@ static inline int fork_with_pid(struct pstree_item *item)
|
|||
BUG_ON(pid != INIT_PID);
|
||||
}
|
||||
|
||||
if (ca.clone_flags & CLONE_FILES)
|
||||
close_pid_proc();
|
||||
|
||||
/*
|
||||
* Some kernel modules, such as netwrok packet generator
|
||||
* run kernel thread upon net-namespace creattion taking
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue