[Devel] Re: multi-threaded app fails to restart

Dan Smith danms at us.ibm.com
Mon Jul 26 10:11:24 PDT 2010


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 <danms at us.ibm.com>

-- 
Dan Smith
IBM Linux Technology Center
email: danms at us.ibm.com
_______________________________________________
Containers mailing list
Containers at lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/containers




More information about the Devel mailing list