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

Commit de7e9a87 authored by Jing Ji's avatar Jing Ji
Browse files

Handle the race condition in handling delayed app kills.

Bug: 195955563
Bug: 198843236
Test: atest CtsAppTestCases
Change-Id: I94fbc0e46ce16ee56f2cb866ab3d3c7f52edae80
parent 94a13790
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -4263,6 +4263,10 @@ public class ActivityManagerService extends IActivityManager.Stub
            if (isKillTimeout) {
                // It's still alive... maybe blocked at uninterruptible sleep ?
                final ProcessRecord successor = app.mSuccessor;
                if (successor == null) {
                    // There might be a race, nothing to do here.
                    return;
                }
                Slog.wtf(TAG, app.toString() + " " + app.getDyingPid()
                        + " refused to die while trying to launch " + successor
                        + ", cancelling the process start");