diff options
author | Lennart Poettering <lennart@poettering.net> | 2017-02-24 17:52:58 +0100 |
---|---|---|
committer | Sven Eden <yamakuzure@gmx.net> | 2017-07-17 17:58:36 +0200 |
commit | 37199e725d1f2bb3ec1cdb582172401697bd4b7c (patch) | |
tree | 128308559535a6df5a6d64f3a31169429f425609 /src/basic/cgroup-util.h | |
parent | 39d3a5d073a084f0847bc8243cca1460f2920ece (diff) |
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.
Diffstat (limited to 'src/basic/cgroup-util.h')
-rw-r--r-- | src/basic/cgroup-util.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/basic/cgroup-util.h b/src/basic/cgroup-util.h index 33b7ba7f4..942f48228 100644 --- a/src/basic/cgroup-util.h +++ b/src/basic/cgroup-util.h @@ -254,9 +254,9 @@ bool cg_ns_supported(void); #endif // 0 #if 0 /// UNNEEDED by elogind -bool cg_all_unified(void); -bool cg_hybrid_unified(void); -bool cg_unified(const char *controller); +int cg_all_unified(void); +int cg_hybrid_unified(void); +int cg_unified(const char *controller); int cg_unified_flush(void); bool cg_is_unified_wanted(void); |