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

Commit 422bffb2 authored by Colin Cross's avatar Colin Cross Committed by Android Git Automerger
Browse files

am 0b12f0a7: Merge "processgroup: close directories opened by...

am 0b12f0a7: Merge "processgroup: close directories opened by removeAllProcessGroups()" into lmp-dev

* commit '0b12f0a7':
  processgroup: close directories opened by removeAllProcessGroups()
parents 3601abb8 0b12f0a7
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -171,6 +171,7 @@ static void removeUidProcessGroups(const char *uid_path)
            SLOGV("removing %s\n", path);
            rmdir(path);
        }
        closedir(uid);
    }
}

@@ -180,8 +181,7 @@ void removeAllProcessGroups()
    DIR *root = opendir(PROCESSGROUP_CGROUP_PATH);
    if (root == NULL) {
        SLOGE("failed to open %s: %s", PROCESSGROUP_CGROUP_PATH, strerror(errno));
    }
    if (root != NULL) {
    } else {
        struct dirent cur;
        struct dirent *dir;
        while ((readdir_r(root, &cur, &dir) == 0) && dir) {
@@ -199,6 +199,7 @@ void removeAllProcessGroups()
            SLOGV("removing %s\n", path);
            rmdir(path);
        }
        closedir(root);
    }
}