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:
commit
3395088268
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue