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

Commit 1b1b0a37 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

Change-Id: I629a33f9c950811ae82a0a83a98292934f0eebde
parents 83df2a73 0799f444
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 {