Merge "libprocessgroup: fix task_profile_test to correctly detect cgroup v2"

This commit is contained in:
Treehugger Robot 2023-04-12 22:20:20 +00:00 committed by Gerrit Code Review
commit 253f33aac5

View file

@ -43,7 +43,7 @@ bool IsCgroupV2Mounted() {
}
struct mntent* mnt;
while ((mnt = getmntent(mnts.get()))) {
if (strcmp(mnt->mnt_fsname, "cgroup2") == 0) {
if (strcmp(mnt->mnt_type, "cgroup2") == 0) {
return true;
}
}