Re: multi-threaded app fails to restart

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxx>

-- 
Dan Smith
IBM Linux Technology Center
email: danms@xxxxxxxxxx
_______________________________________________
Containers mailing list
Containers@xxxxxxxxxxxxxxxxxxxxxxxxxx
https://lists.linux-foundation.org/mailman/listinfo/containers


[Index of Archives]     [Cgroups]     [Netdev]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite Forum]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux