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