Merge "Do not kill the server process itself" am: b38b1408dc

Original change: https://android-review.googlesource.com/c/platform/frameworks/base/+/2503855

Change-Id: I7fef2f3fed608a61a248f5589d4c807b70db04cd
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bart Van Assche
2023-03-27 18:35:00 +00:00
committed by Automerger Merge Worker

View File

@@ -2573,7 +2573,10 @@ public final class ProcessList {
+ ", " + reason); + ", " + reason);
app.setPendingStart(false); app.setPendingStart(false);
killProcessQuiet(pid); killProcessQuiet(pid);
Process.killProcessGroup(app.uid, app.getPid()); final int appPid = app.getPid();
if (appPid != 0) {
Process.killProcessGroup(app.uid, appPid);
}
noteAppKill(app, ApplicationExitInfo.REASON_OTHER, noteAppKill(app, ApplicationExitInfo.REASON_OTHER,
ApplicationExitInfo.SUBREASON_INVALID_START, reason); ApplicationExitInfo.SUBREASON_INVALID_START, reason);
return false; return false;