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

Commit 671c4a0d authored by Yifan Hong's avatar Yifan Hong Committed by android-build-merger
Browse files

Merge "Actually remove dead processes from lshal" am: 28765c61 am: d52b085d am: e69eaddc

am: 681af84d

Change-Id: I9e066dcb2b9a165c2642ea393ad30d323f898c16
parents 8a730a5e 681af84d
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -68,9 +68,9 @@ const std::string &ListCommand::getCmdline(pid_t pid) {

void ListCommand::removeDeadProcesses(Pids *pids) {
    static const pid_t myPid = getpid();
    std::remove_if(pids->begin(), pids->end(), [this](auto pid) {
    pids->erase(std::remove_if(pids->begin(), pids->end(), [this](auto pid) {
        return pid == myPid || this->getCmdline(pid).empty();
    });
    }), pids->end());
}

bool ListCommand::getReferencedPids(