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
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index 612ac09..f191b97 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -853,12 +853,8 @@
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,