diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-25 20:42:50 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-25 20:42:50 +0200 |
commit | 98bac6058c919071ba6b7860b925decacafdc822 (patch) | |
tree | c93cceec5cc5ad1736950dd661c8643696f681fe /test | |
parent | 37a0d5bf212df5b45ded449f4adaefd737df058b (diff) |
core: report root cgroup as "/" over the bus
Internally, the root cgroup is stored as the empty string in
Unit.cgroup_path, and "no cgroup" as NULL. Unfortunately, D-Bus does not
know a NULL concept, hence when reporting the cgroup to clients we
should turn the root cgroup into "/", and leave the empty string for the
"no cgroup" case.
This should make sure that "systemctl status -- -.slice" works correctly
and shows the entire cgroup tree.
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions