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

Commit b587a472 authored by Treehugger Robot's avatar Treehugger Robot Committed by Automerger Merge Worker
Browse files

Merge "Use libprocessgroup to find cgroup v2 paths" into main am: 94cadf01 am: f07c0d66

parents 1aba9815 f07c0d66
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -344,7 +344,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;