mirror of
https://github.com/checkpoint-restore/criu
synced 2025-08-30 22:05:36 +00:00
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 <skinsbursky@virtuozzo.com> Signed-off-by: Pavel Emelyanov <xemul@virtuozzo.com>
This commit is contained in:
committed by
Pavel Emelyanov
parent
2c623a56b1
commit
a8969a9542
@@ -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;
|
||||
|
Reference in New Issue
Block a user