In in ecorner case there i somitted countter incrementation so the loop is in this case endless. This patch fixes the problem
Signed-off-by: Ivana Hutarova Varekova <[email protected]> --- src/tools/cgsnapshot.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/src/tools/cgsnapshot.c b/src/tools/cgsnapshot.c index cb3b22d..2b5e2df 100644 --- a/src/tools/cgsnapshot.c +++ b/src/tools/cgsnapshot.c @@ -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; } ------------------------------------------------------------------------------ Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev _______________________________________________ Libcg-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/libcg-devel
