Revert "cgroup.c: check return value of unit_realize_cgroup_now()"

This reverts commit 1f11a0cdfe.
This commit is contained in:
Harald Hoyer
2013-08-28 16:02:39 +02:00
parent a255a7f144
commit 3d040cf244
+2 -7
View File
@@ -432,13 +432,8 @@ static int unit_realize_cgroup_now(Unit *u) {
return 0;
/* First, realize parents */
if (UNIT_ISSET(u->slice)) {
int r;
r = unit_realize_cgroup_now(UNIT_DEREF(u->slice));
if (r < 0)
return r;
}
if (UNIT_ISSET(u->slice))
unit_realize_cgroup_now(UNIT_DEREF(u->slice));
/* And then do the real work */
return unit_create_cgroups(u, mask);