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

Commit 21eb774d authored by Steven Moreland's avatar Steven Moreland
Browse files

libbinder: stopProcess: directly stop process

Some threads can fatal abort from this, so go ahead and
stop the process directly. Faster and simpler.

Bug: 388886755
Test: boot
Change-Id: I9fabf092a5199c22ce5952df70c1457e019988a8
parent 17305287
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -853,12 +853,8 @@ status_t IPCThreadState::handlePolledCommands()

void IPCThreadState::stopProcess(bool /*immediate*/)
{
    //ALOGI("**** STOPPING PROCESS");
    flushCommands();
    int fd = mProcess->mDriverFD;
    mProcess->mDriverFD = -1;
    close(fd);
    //kill(getpid(), SIGKILL);
    ALOGI("IPCThreadState::stopProcess() (deprecated) called. Exiting process.");
    exit(0);
}

status_t IPCThreadState::transact(int32_t handle,