Re: Reply #2: [TOOLS] To make use of the patches

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

 



On 07/23/2011 04:40 AM, Matt Helsley wrote:
> On Fri, Jul 15, 2011 at 05:49:08PM +0400, Pavel Emelyanov wrote:
> 
> <snip>
> 
>> static void kill_imgfiles(int pid)
>> {
>> 	/* FIXME */
>> }
>>
>> static int stop_task(int pid)
>> {
>> 	return kill(pid, SIGSTOP);
>> }
> 
> Shouldn't you wait() on the task too? Otherwise I think you'll race
> with it. Alternately, you could introduce a wait() phase after the loop
> calls stop_task() below...

Well, as discussed - I will switch to the freezer cgroup instead of this signalling.
_______________________________________________
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