Merge pull request #21172 from poettering/fix-systemctl-cgroup-tree

fix "sytemctl status" cgroup tree output
This commit is contained in:
Lennart Poettering
2021-10-29 09:17:43 +02:00
committed by GitHub
2 changed files with 17 additions and 21 deletions
+4 -2
View File
@@ -188,11 +188,13 @@ static int dump_processes(
more = i+1 < n || cg->children;
special = special_glyph(more ? SPECIAL_GLYPH_TREE_BRANCH : SPECIAL_GLYPH_TREE_RIGHT);
fprintf(stdout, "%s%s%*"PID_PRI" %s\n",
fprintf(stdout, "%s%s%s%*"PID_PRI" %s%s\n",
prefix,
special,
ansi_grey(),
width, pids[i],
name);
name,
ansi_normal());
}
}