Skip to content

Commit dab2965

Browse files
author
Steven Moreland
committed
Revert "libbinder: stopProcess: directly stop process"
This reverts commit 21eb774. Reason for revert: b/390572524 Change-Id: I9efba529674e99f0058274aef0010295b5e9dc04
1 parent 21eb774 commit dab2965

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

libs/binder/IPCThreadState.cpp

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

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

860864
status_t IPCThreadState::transact(int32_t handle,

0 commit comments

Comments
 (0)