From ab1f063390f55e14a8de87f21c4fad199eb908a6 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 20 Aug 2011 00:20:41 +0200 Subject: exec: optionally apply cgroup attributes to the cgroups we create --- src/cgroup.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/cgroup.c') diff --git a/src/cgroup.c b/src/cgroup.c index 4aa01f1898..0005a4fb67 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; -- cgit v1.2.3-54-g00ecf