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

Commit 17c84b9f authored by Bart Van Assche's avatar Bart Van Assche
Browse files

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



This CL prepares for introducing an additional flag test.

Bug: 213617178
Change-Id: Ia74c1990792b5839f76498de2cac0008ed92040f
Signed-off-by: default avatarBart Van Assche <bvanassche@google.com>
parent 392eae64
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")) {