OL> diff --git a/kernel/checkpoint/sys.c b/kernel/checkpoint/sys.c
OL> index 171c867..c5517c2 100644
OL> --- a/kernel/checkpoint/sys.c
OL> +++ b/kernel/checkpoint/sys.c
OL> @@ -625,8 +625,11 @@ int walk_task_subtree(struct task_struct *root,
OL>             }

OL>             /* if we arrive at root again -- done */
OL> -           if (task == root)
OL> -                   break;
OL> +           if (task == root) {
OL> +                   /* if not last thread - proceed with thread */
OL> +                   task = root = next_thread(task);
OL> +                   if (thread_group_leader(task))
OL> +                           break;

                } // Need to close this block

Otherwise it seems to work for me:

Tested-by: Dan Smith <[email protected]>

-- 
Dan Smith
IBM Linux Technology Center
email: [email protected]
_______________________________________________
Containers mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/containers

_______________________________________________
Devel mailing list
[email protected]
https://openvz.org/mailman/listinfo/devel

Reply via email to