Merge "Use killProcessGroup when killing app zygote." into rvc-dev am: 0a8ef2b45f am: f1e067d713

Original change: undetermined

Change-Id: I25071384d81546fa3df105addebf15db9c18439b
This commit is contained in:
Martijn Coenen
2020-06-02 07:22:24 +00:00
committed by Automerger Merge Worker

View File

@@ -92,10 +92,9 @@ public class AppZygote {
@GuardedBy("mLock")
private void stopZygoteLocked() {
if (mZygote != null) {
// Close the connection and kill the zygote process. This will not cause
// child processes to be killed by itself.
mZygote.close();
Process.killProcess(mZygote.getPid());
// use killProcessGroup() here, so we kill all untracked children as well.
Process.killProcessGroup(mZygoteUid, mZygote.getPid());
mZygote = null;
}
}