Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit bf0413ee authored by Martijn Coenen's avatar Martijn Coenen Committed by Android (Google) Code Review
Browse files

Merge "Use killProcessGroup when killing app zygote." into qt-qpr1-dev

parents 7b8b45e2 0a91f61a
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -90,10 +90,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;
        }
    }