cgroup-util: drop handcrafted cg_is_empty(), always check cgroup.events populated field (#37624)
This commit is contained in:
@@ -251,7 +251,7 @@ int show_cgroup_by_path(
|
||||
if (!k)
|
||||
return -ENOMEM;
|
||||
|
||||
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty_recursive(NULL, k) > 0)
|
||||
if (!(flags & OUTPUT_SHOW_ALL) && cg_is_empty(NULL, k) > 0)
|
||||
continue;
|
||||
|
||||
if (!shown_pids) {
|
||||
|
||||
Reference in New Issue
Block a user