]> git.ipfire.org Git - thirdparty/libcgroup.git/commitdiff
In corner case there is omitted incrementation of the counter so
authorJan Safranek <jsafrane@redhat.com>
Thu, 2 Dec 2010 14:00:40 +0000 (15:00 +0100)
committerJan Safranek <jsafrane@redhat.com>
Thu, 2 Dec 2010 14:00:40 +0000 (15:00 +0100)
there will be endless loop. This patch fixes the problem

Signed-off-by: Ivana Hutarova Varekova <varekova@redhat.com>
Signed-off-by: Jan Safranek <jsafrane@redhat.com>
src/tools/cgsnapshot.c

index cb3b22ddda415af024f5a5a40dd73e01c26fe763..2b5e2df74b334b596e707ec4031104c129979b91 100644 (file)
@@ -313,6 +313,7 @@ static int display_cgroup_data(struct cgroup *group,
                        printf("cannot find controller "\
                                "'%s' in group '%s'\n",
                                controller[i], group->name);
+                       i++;
                        ret = -1;
                        continue;
                }