2
0
mirror of https://github.com/checkpoint-restore/criu synced 2025-08-31 14:25:49 +00:00

optimize thread-less restore a bit

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
This commit is contained in:
Pavel Emelyanov
2012-03-03 19:34:59 +03:00
parent 351537c4f4
commit 446b6526be

View File

@@ -598,7 +598,7 @@ long restore_task(struct task_restore_core_args *args)
* +--------------------------------------------------------------------------+
*/
if (args->nr_threads) {
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;