chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d12709
)
systemctl: show cgroup tree if cgroup is empty but has non-empty children
author
Lennart Poettering
<lennart@poettering.net>
Thu, 11 Jul 2013 17:15:01 +0000
(19:15 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Thu, 11 Jul 2013 17:15:01 +0000
(19:15 +0200)
This makes sure "systemctl status user.slice" shows a nice cgroup tree
of all logged in users.
src/systemctl/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl/systemctl.c
b/src/systemctl/systemctl.c
index d25b7d6fae90ecf93a7951257b44d278aa4ea4d8..2ea5a3b0d8f19e9dfd937b40ad510b307794a783 100644
(file)
--- a/
src/systemctl/systemctl.c
+++ b/
src/systemctl/systemctl.c
@@
-2788,7
+2788,7
@@
static void print_status_info(UnitStatusInfo *i) {
printf(" Status: \"%s\"\n", i->status_text);
if (i->control_group &&
- (i->main_pid > 0 || i->control_pid > 0 || cg_is_empty(SYSTEMD_CGROUP_CONTROLLER, i->control_group, false) == 0)) {
+ (i->main_pid > 0 || i->control_pid > 0 || cg_is_empty
_recursive
(SYSTEMD_CGROUP_CONTROLLER, i->control_group, false) == 0)) {
unsigned c;
printf(" CGroup: %s\n", i->control_group);