We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 08194ac + dab2965 commit 4f9c579Copy full SHA for 4f9c579
1 file changed
libs/binder/IPCThreadState.cpp
@@ -853,8 +853,12 @@ status_t IPCThreadState::handlePolledCommands()
853
854
void IPCThreadState::stopProcess(bool /*immediate*/)
855
{
856
- ALOGI("IPCThreadState::stopProcess() (deprecated) called. Exiting process.");
857
- exit(0);
+ //ALOGI("**** STOPPING PROCESS");
+ (void)flushCommands();
858
+ int fd = mProcess->mDriverFD;
859
+ mProcess->mDriverFD = -1;
860
+ close(fd);
861
+ //kill(getpid(), SIGKILL);
862
}
863
864
status_t IPCThreadState::transact(int32_t handle,
0 commit comments