From 21eb774dcb7df4a63e9080b4e5f9cd7a4b55a08e Mon Sep 17 00:00:00 2001 From: Steven Moreland Date: Fri, 10 Jan 2025 19:41:00 +0000 Subject: 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 --- libs/binder/IPCThreadState.cpp | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'libs/binder/IPCThreadState.cpp') diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 612ac09375..f191b97e5f 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -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, -- cgit v1.2.3-59-g8ed1b