diff options
Diffstat (limited to 'src/tools/cgexec.c')
-rw-r--r-- | src/tools/cgexec.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/tools/cgexec.c b/src/tools/cgexec.c index a036870..2c92964 100644 --- a/src/tools/cgexec.c +++ b/src/tools/cgexec.c @@ -59,7 +59,9 @@ int main(int argc, char *argv[]) while ((c = getopt_long(argc, argv, "+g:s", longopts, NULL)) > 0) { switch (c) { case 'g': - if (parse_cgroup_spec(cgroup_list, optarg)) { + ret = parse_cgroup_spec(cgroup_list, optarg, + CG_HIER_MAX); + if (ret) { fprintf(stderr, "cgroup controller and path" "parsing failed\n"); return -1; |