Avoid tearing down process groups twice.
The second removal always triggers a warning. Change-Id: Ieafa8374dbffdaff0d576de004a688cae6f8ac18
This commit is contained in:
committed by
Dianne Hackborn
parent
5a267e72b2
commit
034ef013ec
@@ -4655,9 +4655,11 @@ public final class ActivityManagerService extends ActivityManagerNative
|
||||
stats.noteProcessDiedLocked(app.info.uid, pid);
|
||||
}
|
||||
|
||||
Process.killProcessQuiet(pid);
|
||||
Process.killProcessGroup(app.info.uid, pid);
|
||||
app.killed = true;
|
||||
if (!app.killed) {
|
||||
Process.killProcessQuiet(pid);
|
||||
Process.killProcessGroup(app.info.uid, pid);
|
||||
app.killed = true;
|
||||
}
|
||||
|
||||
// Clean up already done if the process has been re-started.
|
||||
if (app.pid == pid && app.thread != null &&
|
||||
|
||||
Reference in New Issue
Block a user