Skip to content

Commit 21eb774

Browse files
author
Steven Moreland
committed
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
1 parent 1730528 commit 21eb774

1 file changed

Lines changed: 2 additions & 6 deletions

File tree

libs/binder/IPCThreadState.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -853,12 +853,8 @@ status_t IPCThreadState::handlePolledCommands()
853853

854854
void IPCThreadState::stopProcess(bool /*immediate*/)
855855
{
856-
//ALOGI("**** STOPPING PROCESS");
857-
flushCommands();
858-
int fd = mProcess->mDriverFD;
859-
mProcess->mDriverFD = -1;
860-
close(fd);
861-
//kill(getpid(), SIGKILL);
856+
ALOGI("IPCThreadState::stopProcess() (deprecated) called. Exiting process.");
857+
exit(0);
862858
}
863859

864860
status_t IPCThreadState::transact(int32_t handle,

0 commit comments

Comments
 (0)