summaryrefslogtreecommitdiff
path: root/src/shared/cgroup-label.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-04-14 02:15:13 +0200
committerLennart Poettering <lennart@poettering.net>2012-04-16 18:59:07 +0200
commit3474ae3c7e1981301d0b35bc89d759ca13f06e8f (patch)
tree077a731a876821609751b1abcbe654cdfa6f288e /src/shared/cgroup-label.c
parent80172751b7a678834c1a453ae28c0eb333958250 (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.c3
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);