From a8969a95428756b518cdb2fd8b754fd55f4680c4 Mon Sep 17 00:00:00 2001 From: Stanislav Kinsburskiy Date: Fri, 23 Sep 2016 17:41:45 +0300 Subject: [PATCH] restorer: add forgotten CLONE_FS flag for threads clone Threads must share fs struct. Without this path each thread has it's own fs struct. Signed-off-by: Stanislav Kinsburskiy Signed-off-by: Pavel Emelyanov --- criu/pie/restorer.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/criu/pie/restorer.c b/criu/pie/restorer.c index 6b4bbb501..677fc2646 100644 --- a/criu/pie/restorer.c +++ b/criu/pie/restorer.c @@ -1286,7 +1286,7 @@ long __export_restore_task(struct task_restore_args *args) if (args->nr_threads > 1) { struct thread_restore_args *thread_args = args->thread_args; long clone_flags = CLONE_VM | CLONE_FILES | CLONE_SIGHAND | - CLONE_THREAD | CLONE_SYSVSEM; + CLONE_THREAD | CLONE_SYSVSEM | CLONE_FS; long last_pid_len; long parent_tid; int i, fd;