X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fcgroup.c;h=dcf2c2feb7a30d44fc347e5e0da2f30f1046be5b;hp=4aa01f18981b5c7a84e7ba2b66c78855201f344d;hb=dad503169b2665ecfd3f5bfb3c936897e44ecca7;hpb=7e2bb92dcae6ee785ff7462aadc8c369fd93715b diff --git a/src/cgroup.c b/src/cgroup.c index 4aa01f189..dcf2c2feb 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -41,8 +41,11 @@ int cgroup_bonding_realize(CGroupBonding *b) { if (b->realized) return 0; - if ((r = cg_create(b->controller, b->path)) < 0) + r = cg_create(b->controller, b->path); + if (r < 0) { + log_warning("Failed to create cgroup %s:%s: %s", b->controller, b->path, strerror(-r)); return r; + } b->realized = true; @@ -267,7 +270,7 @@ int manager_setup_cgroup(Manager *m) { assert(m); /* 0. Be nice to Ingo Molnar #628004 */ - if (path_is_mount_point("/sys/fs/cgroup/systemd") <= 0) { + if (path_is_mount_point("/sys/fs/cgroup/systemd", false) <= 0) { log_warning("No control group support available, not creating root group."); return 0; }