mirror of
https://github.com/AuxXxilium/eudev.git
synced 2024-12-27 06:05:24 +07:00
cgtop: work even if not all cgroups are available
cgtop quits on startup if all the cgroup mounts it expects are not available. Just continue without nonexistant ones.
This commit is contained in:
parent
80d37ae7b9
commit
63210a15e1
@ -341,17 +341,22 @@ static int refresh(Hashmap *a, Hashmap *b, unsigned iteration) {
|
||||
|
||||
r = refresh_one("name=systemd", "/", a, b, iteration, 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (r != -ENOENT)
|
||||
return r;
|
||||
r = refresh_one("cpuacct", "/", a, b, iteration, 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
|
||||
if (r != -ENOENT)
|
||||
return r;
|
||||
r = refresh_one("memory", "/", a, b, iteration, 0);
|
||||
if (r < 0)
|
||||
return r;
|
||||
if (r != -ENOENT)
|
||||
return r;
|
||||
|
||||
return refresh_one("blkio", "/", a, b, iteration, 0);
|
||||
r = refresh_one("blkio", "/", a, b, iteration, 0);
|
||||
if (r < 0)
|
||||
if (r != -ENOENT)
|
||||
return r;
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int group_compare(const void*a, const void *b) {
|
||||
|
Loading…
Reference in New Issue
Block a user