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

Commit d9098252 authored by Bart Van Assche's avatar Bart Van Assche Committed by Gerrit Code Review
Browse files

Merge "libprocessgroup: Introduce a local variable in CgroupMap::ActivateControllers()"

parents d45181f1 17c84b9f
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -229,8 +229,8 @@ int CgroupMap::ActivateControllers(const std::string& path) const {
        auto controller_count = ACgroupFile_getControllerCount();
        for (uint32_t i = 0; i < controller_count; ++i) {
            const ACgroupController* controller = ACgroupFile_getController(i);
            if (ACgroupController_getFlags(controller) &
                CGROUPRC_CONTROLLER_FLAG_NEEDS_ACTIVATION) {
            const uint32_t flags = ACgroupController_getFlags(controller);
            if (flags & CGROUPRC_CONTROLLER_FLAG_NEEDS_ACTIVATION) {
                std::string str("+");
                str.append(ACgroupController_getName(controller));
                if (!WriteStringToFile(str, path + "/cgroup.subtree_control")) {