[CRIU] [PATCH 3/4] cg: Check for name= prefix in controller, not cgset

Tycho Andersen tycho.andersen at canonical.com
Tue Aug 12 07:15:43 PDT 2014


On Tue, Aug 12, 2014 at 05:19:18PM +0400, Pavel Emelyanov wrote:
> This should be symmetrical with cg dirs creation.
> 
> Signed-off-by: Pavel Emelyanov <xemul at parallels.com>

Acked-by: Tycho Andersen <tycho.andersen at canonical.com>

> ---
>  cgroup.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cgroup.c b/cgroup.c
> index 3efbd2f..f774a42 100644
> --- a/cgroup.c
> +++ b/cgroup.c
> @@ -843,7 +843,7 @@ static int move_in_cgroup(CgSetEntry *se)
>  		aux_off = 0;
>  		for (j = 0; j < ctrl->n_cnames; j++) {
>  			char *name;
> -			if (strstartswith(ce->name, "name="))
> +			if (strstartswith(ctrl->cnames[j], "name="))
>  				name = ctrl->cnames[j] + 5;
>  			else
>  				name = ctrl->cnames[j];
> -- 
> 1.8.4.2
> 
> 
> _______________________________________________
> CRIU mailing list
> CRIU at openvz.org
> https://lists.openvz.org/mailman/listinfo/criu


More information about the CRIU mailing list