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

Commit f04a35e7 authored by Jing Ji's avatar Jing Ji Committed by Android (Google) Code Review
Browse files

Merge "Treat it dead if the process record's pid is invalid"

parents 9d3954ff d515b7d0
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -2101,6 +2101,10 @@ public final class ProcessList {
     */
    @GuardedBy("mService")
    private boolean isProcessAliveLiteLocked(ProcessRecord app) {
        // If somehow the pid is invalid, let's think it's dead.
        if (app.pid <= 0) {
            return false;
        }
        try {
            Os.kill(app.pid, 0);
        } catch (ErrnoException e) {