Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d09713fe authored by Suren Baghdasaryan's avatar Suren Baghdasaryan
Browse files

libprocessgroup: fix task_profile_test to correctly detect cgroup v2



Use correct attribute of the mntent to check for cgroup v2 entry.

Bug: 277233783
Change-Id: Ie34b89b610117b8ce043f2f18947273d75618fef
Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
parent 6c0ff3bd
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
        }
    }