diff --git a/criu/cr-restore.c b/criu/cr-restore.c index 3a1c0cd9e..72fb55c2b 100644 --- a/criu/cr-restore.c +++ b/criu/cr-restore.c @@ -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