diff options
author | 2025-01-10 19:41:00 +0000 | |
---|---|---|
committer | 2025-01-10 13:53:52 -0800 | |
commit | 21eb774dcb7df4a63e9080b4e5f9cd7a4b55a08e (patch) | |
tree | b503457bbe485da3b6fadef4d746f0c4f0961ee9 /libs/binder/IPCThreadState.cpp | |
parent | 17305287f909e97854847a2fae0196fdf5dedfde (diff) |
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
Diffstat (limited to 'libs/binder/IPCThreadState.cpp')
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
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, |