Merge "libprocessgroup: fix task_profile_test to correctly detect cgroup v2" am: 253f33aac5 am: 32aaf75a1a

Original change: https://android-review.googlesource.com/c/platform/system/core/+/2534619

Change-Id: I8a5cb1288e99bc67086582dd2b752f077e6773ef
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Treehugger Robot 2023-04-12 23:00:05 +00:00 committed by Automerger Merge Worker
commit 3395088268

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;
}
}