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

Pavel Emelyanov xemul at parallels.com
Tue Aug 12 06:19:18 PDT 2014


This should be symmetrical with cg dirs creation.

Signed-off-by: Pavel Emelyanov <xemul at parallels.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




More information about the CRIU mailing list