mirror of
https://github.com/AuxXxilium/eudev.git
synced 2025-03-10 16:39:30 +07:00
cgls: don't strip user processes and kernel threads from default output
This commit is contained in:
parent
f3accc08d3
commit
b9a8e638ed
@ -112,8 +112,12 @@ int main(int argc, char *argv[]) {
|
||||
|
||||
if ((r = cg_get_by_pid(SYSTEMD_CGROUP_CONTROLLER, 1, &root)) < 0)
|
||||
t = "/";
|
||||
else
|
||||
t = root;
|
||||
else {
|
||||
if (endswith(root, "/system"))
|
||||
root[strlen(root)-7] = 0;
|
||||
|
||||
t = root[0] ? root : "/";
|
||||
}
|
||||
|
||||
r = show_cgroup(SYSTEMD_CGROUP_CONTROLLER, t, NULL, 0);
|
||||
free(root);
|
||||
|
Loading…
Reference in New Issue
Block a user