chiark / gitweb /
cgroup: change cg_unified() to possibly return errors again
authorLennart Poettering <lennart@poettering.net>
Fri, 24 Feb 2017 16:52:58 +0000 (17:52 +0100)
committerSven Eden <yamakuzure@gmx.net>
Mon, 17 Jul 2017 15:58:36 +0000 (17:58 +0200)
commit37199e725d1f2bb3ec1cdb582172401697bd4b7c
tree128308559535a6df5a6d64f3a31169429f425609
parent39d3a5d073a084f0847bc8243cca1460f2920ece
cgroup: change cg_unified() to possibly return errors again

We use our cgroup APIs in various contexts, including from our libraries
sd-login, sd-bus. As we don#t control those environments we can't rely
that the unified cgroup setup logic succeeds, and hence really shouldn't
assert on it.

This more or less reverts 415fc41ceaeada2e32639f24f134b1c248b9e43f.
src/basic/cgroup-util.c
src/basic/cgroup-util.h
src/core/cgroup.c