diff options
| author | 2015-07-29 01:00:41 +0000 | |
|---|---|---|
| committer | 2015-07-29 01:00:41 +0000 | |
| commit | 779ccbe3cb556ab00ad04f2f2317e8ad4bfc8f2c (patch) | |
| tree | 568a885202c9d03a7fb80f9be2704a0f294e96c7 | |
| parent | 1b391d6499c161ded570ef45ad3083458529723d (diff) | |
| parent | 5b009d523c6ad89f946e4a19f3fdba3c63bcf1f5 (diff) | |
am 5b009d52: Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
* commit '5b009d523c6ad89f946e4a19f3fdba3c63bcf1f5':
Fix issue #22802617: APR: spurious wtf when restarting a persistent process
| -rw-r--r-- | services/core/java/com/android/server/am/ActivityManagerService.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/services/core/java/com/android/server/am/ActivityManagerService.java b/services/core/java/com/android/server/am/ActivityManagerService.java index cf7ebe882f59..89e500e0432f 100644 --- a/services/core/java/com/android/server/am/ActivityManagerService.java +++ b/services/core/java/com/android/server/am/ActivityManagerService.java @@ -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 // need to clean up whatever may be there now. 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); } UidRecord uidRec = mActiveUids.get(proc.uid); |