summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Dianne Hackborn <hackbod@google.com> 2015-07-29 02:12:24 +0000
committer Android Git Automerger <android-git-automerger@android.com> 2015-07-29 02:12:24 +0000
commitad7923f1403f7fcfec6b0a4c6bbdfcbd686cff37 (patch)
tree8f29e91f37d0740e28d17e43421dcc29abe31896
parent578d21fddc2e15441d3404e6ee5c5813d95165d6 (diff)
parent5d4a5ccbadb8d17a900297aa9e766824a0a0397c (diff)
am 5d4a5ccb: am 94d5e6b0: am 779ccbe3: am 5b009d52: Merge "Fix issue #22802617: APR: spurious wtf when restarting a persistent process" into mnc-dev
* commit '5d4a5ccbadb8d17a900297aa9e766824a0a0397c': 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 b19e843dbd73..8660fa092779 100644
--- a/services/core/java/com/android/server/am/ActivityManagerService.java
+++ b/services/core/java/com/android/server/am/ActivityManagerService.java
@@ -5824,7 +5824,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);