Merge "Fix potential FD leak with PhantomProcessRecord bookkeeping" into sc-dev am: 5d411d76ea

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

Change-Id: I985a94345cf141c0f99fcb48d35dc748a0632553
This commit is contained in:
Jing Ji
2021-07-23 00:22:00 +00:00
committed by Automerger Merge Worker

View File

@@ -305,7 +305,7 @@ public final class PhantomProcessList {
}
// Somehow our record doesn't match, remove it anyway
Slog.w(TAG, "Stale " + proc + ", removing");
mPhantomProcesses.removeAt(index);
onPhantomProcessKilledLocked(proc);
} else {
// Is this one of the zombie processes we've known?
final int idx = mZombiePhantomProcesses.indexOfKey(pid);