Merge "Use killProcessGroup when killing app zygote." into qt-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ff0af3d0c2
@@ -90,10 +90,9 @@ public class AppZygote {
|
|||||||
@GuardedBy("mLock")
|
@GuardedBy("mLock")
|
||||||
private void stopZygoteLocked() {
|
private void stopZygoteLocked() {
|
||||||
if (mZygote != null) {
|
if (mZygote != null) {
|
||||||
// Close the connection and kill the zygote process. This will not cause
|
|
||||||
// child processes to be killed by itself.
|
|
||||||
mZygote.close();
|
mZygote.close();
|
||||||
Process.killProcess(mZygote.getPid());
|
// use killProcessGroup() here, so we kill all untracked children as well.
|
||||||
|
Process.killProcessGroup(mZygoteUid, mZygote.getPid());
|
||||||
mZygote = null;
|
mZygote = null;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user