Skip to content

Commit 4f9c579

Browse files
Treehugger RobotAndroid (Google) Code Review
authored andcommitted
Merge "Revert "libbinder: stopProcess: directly stop process"" into main
2 parents 08194ac + dab2965 commit 4f9c579

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)