Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
5b009d523c
@@ -5840,7 +5840,10 @@ public final class ActivityManagerService extends ActivityManagerNative
|
|||||||
// We shouldn't already have a process under this name, but just in case we
|
// We shouldn't already have a process under this name, but just in case we
|
||||||
// need to clean up whatever may be there now.
|
// need to clean up whatever may be there now.
|
||||||
ProcessRecord old = removeProcessNameLocked(proc.processName, proc.uid);
|
ProcessRecord old = removeProcessNameLocked(proc.processName, proc.uid);
|
||||||
if (old != null) {
|
if (old == proc && proc.persistent) {
|
||||||
|
// We are re-adding a persistent process. Whatevs! Just leave it there.
|
||||||
|
Slog.w(TAG, "Re-adding persistent process " + proc);
|
||||||
|
} else if (old != null) {
|
||||||
Slog.wtf(TAG, "Already have existing proc " + old + " when adding " + proc);
|
Slog.wtf(TAG, "Already have existing proc " + old + " when adding " + proc);
|
||||||
}
|
}
|
||||||
UidRecord uidRec = mActiveUids.get(proc.uid);
|
UidRecord uidRec = mActiveUids.get(proc.uid);
|
||||||
|
|||||||
Reference in New Issue
Block a user