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

Commit c46f75ef authored by Narayan Kamath's avatar Narayan Kamath
Browse files

Avoid tearing down process groups twice.

The second removal always triggers a warning.

Change-Id: Ieafa8374dbffdaff0d576de004a688cae6f8ac18
parent fb5c932d
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -4874,9 +4874,11 @@ public final class ActivityManagerService extends ActivityManagerNative
            stats.noteProcessDiedLocked(app.info.uid, pid);
        }
        if (!app.killed) {
            Process.killProcessQuiet(pid);
            Process.killProcessGroup(app.info.uid, pid);
            app.killed = true;
        }
        // Clean up already done if the process has been re-started.
        if (app.pid == pid && app.thread != null &&