[CRIU] [PATCH] seize: don't wory if a cgroup contains some extra tasks (v3)

Pavel Emelyanov xemul at parallels.com
Mon Dec 14 04:55:48 PST 2015


On 12/11/2015 05:39 PM, Andrey Vagin wrote:
> From: Andrew Vagin <avagin at openvz.org>
> 
> A freezer cgroup can contain tasks which will be not dumped,
> criu unfreezes the group, so we need to freeze all extra
> task with ptrace like we do for target tasks.
> 
> Currently we attache and send an interrupt signals to these tasks,
> but we don't call waitpid() for them, so then waitpid(-1, ...)
> returns these tasks where we don't expect to see them.
> 
> v2: execute freezer_detach() only if opts.freeze_cgroup is set
>     calculate extra tasks in a freezer cgroup correctly
> v3: s/frozen_processes/processes_to_wait/
> 
> Signed-off-by: Andrew Vagin <avagin at virtuozzo.com>

Applied, thanks. Would be nice to have a test for it :)



More information about the CRIU mailing list