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

Commit 94cadf01 authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Use libprocessgroup to find cgroup v2 paths" into main

parents 919ba007 95b92868
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -341,7 +341,12 @@ class BinderLibTest : public ::testing::Test {
        }

        bool checkFreezeSupport() {
            std::ifstream freezer_file("/sys/fs/cgroup/uid_0/cgroup.freeze");
            std::string path;
            if (!CgroupGetAttributePathForTask("FreezerState", getpid(), &path)) {
                return false;
            }

            std::ifstream freezer_file(path);
            // Pass test on devices where the cgroup v2 freezer is not supported
            if (freezer_file.fail()) {
                return false;