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

Commit 0ed7988c authored by Tom Cherry's avatar Tom Cherry Committed by android-build-merger
Browse files

Merge "Fixed the can not kill some process using libprocessgroup" am: 0799f444

am: 1b1b0a37

Change-Id: Ide3e01ea4eefcc0482d45ba32b04bdbbb3ddbbfd
parents 1c09a4d1 1b1b0a37
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -185,7 +185,7 @@ static int DoKillProcessGroupOnce(uid_t uid, int initialPid, int signal) {

    // Erase all pids that will be killed when we kill the process groups.
    for (auto it = pids.begin(); it != pids.end();) {
        pid_t pgid = getpgid(pid);
        pid_t pgid = getpgid(*it);
        if (pgids.count(pgid) == 1) {
            it = pids.erase(it);
        } else {