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=d16b5f878fbc6b4eb6c8c7455fb09ef7e1ad5925;hb=dad503169b2665ecfd3f5bfb3c936897e44ecca7;hpb=31e54cc807edf5294828233e53ca95e754c5cf80 diff --git a/src/cgroup.c b/src/cgroup.c index d16b5f878..dcf2c2feb 100644 --- a/src/cgroup.c +++ b/src/cgroup.c @@ -41,14 +41,14 @@ 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; - if (b->ours) - cg_trim(b->controller, b->path, false); - return 0; } @@ -270,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; }