example cgrules.conf: root:/home/clb/test.sh cpu test
step: 1. cd /home/clb 2. cgexec ./test.sh Actual, the test.sh didn`t attach to test cgroup. Signed-off-by: Libo Chen <clbchenlibo.c...@huawei.com> --- src/api.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/api.c b/src/api.c index e5e1959..c241f35 100644 --- a/src/api.c +++ b/src/api.c @@ -696,6 +696,7 @@ static int cgroup_parse_rules(bool cache, uid_t muid, } mproc_base = cgroup_basename(mprocname); + procname = cgroup_basename(procname); if (strcmp(mprocname, procname) && strcmp(mproc_base, procname)) { uid = CGRULE_INVALID; -- 1.8.2.2 ------------------------------------------------------------------------------ See everything from the browser to the database with AppDynamics Get end-to-end visibility with application monitoring from AppDynamics Isolate bottlenecks and diagnose root cause in seconds. Start your free trial of AppDynamics Pro today! http://pubads.g.doubleclick.net/gampad/clk?id=48808831&iu=/4140/ostg.clktrk _______________________________________________ Libcg-devel mailing list Libcg-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libcg-devel