summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2015-07-29 02:31:21 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-29 02:31:21 +0000
commited267cc75b3187efeb72306d0a425958e1f7d15b (patch)
tree0637064b945ec8f27cbf508d5dc59dcac7e852bb
parentbfdaab5fdacc352ef0e937d15eafef4e406159bc (diff)
parentad7923f1403f7fcfec6b0a4c6bbdfcbd686cff37 (diff)
am ad7923f1: am 5d4a5ccb: am 94d5e6b0: am 779ccbe3: am 5b009d52: Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
* commit 'ad7923f1403f7fcfec6b0a4c6bbdfcbd686cff37': Fix issue #22802617: APR: spurious wtf when restarting a persistent process
-rw-r--r--services/core/java/com/android/server/am/ActivityManagerService.java5
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 5bab927600d8..0904bfd0e365 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -5831,7 +5831,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);