summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Steven Moreland <smoreland@google.com> 2025-01-27 17:44:30 -0800
committer Steven Moreland <smoreland@google.com> 2025-01-27 17:44:50 -0800
commitdab296544bece1e88f3d3ce78ff6aa50e58b5e71 (patch)
tree1443131de8667c80d3481c922045b4a8b8dc1f4a
parent21eb774dcb7df4a63e9080b4e5f9cd7a4b55a08e (diff)
Revert "libbinder: stopProcess: directly stop process"
This reverts commit 21eb774dcb7df4a63e9080b4e5f9cd7a4b55a08e. Reason for revert: b/390572524 Change-Id: I9efba529674e99f0058274aef0010295b5e9dc04
-rw-r--r--libs/binder/IPCThreadState.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp
index f191b97e5f..cdc53ff3e7 100644
--- a/libs/binder/IPCThreadState.cpp
+++ b/libs/binder/IPCThreadState.cpp
@@ -853,8 +853,12 @@ status_t IPCThreadState::handlePolledCommands()
void IPCThreadState::stopProcess(bool /*immediate*/)
{
- ALOGI("IPCThreadState::stopProcess() (deprecated) called. Exiting process.");
- exit(0);
+ //ALOGI("**** STOPPING PROCESS");
+ (void)flushCommands();
+ int fd = mProcess->mDriverFD;
+ mProcess->mDriverFD = -1;
+ close(fd);
+ //kill(getpid(), SIGKILL);
}
status_t IPCThreadState::transact(int32_t handle,