diff options
author | Lennart Poettering <lennart@poettering.net> | 2012-04-14 02:15:13 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2012-04-16 18:59:07 +0200 |
commit | 3474ae3c7e1981301d0b35bc89d759ca13f06e8f (patch) | |
tree | 077a731a876821609751b1abcbe654cdfa6f288e /src/shared/cgroup-label.c | |
parent | 80172751b7a678834c1a453ae28c0eb333958250 (diff) |
cgroup: if a controller is not available don't try to create cgroups in its hierarchy
Diffstat (limited to 'src/shared/cgroup-label.c')
-rw-r--r-- | src/shared/cgroup-label.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/cgroup-label.c b/src/shared/cgroup-label.c index f132d71e21..06e3c16260 100644 --- a/src/shared/cgroup-label.c +++ b/src/shared/cgroup-label.c @@ -43,7 +43,8 @@ int cg_create(const char *controller, const char *path) { assert(controller); assert(path); - if ((r = cg_get_path(controller, path, NULL, &fs)) < 0) + r = cg_get_path_and_check(controller, path, NULL, &fs); + if (r < 0) return r; r = mkdir_parents(fs, 0755); |