Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0c9a590e authored by Jeff Tinker's avatar Jeff Tinker Committed by The Android Automerger
Browse files

Prevent IPCThreadState::joinThreadPool from spinning on unexpected error

Adds logging to help determine what is happening to the /dev/binder
fd and dump the process state when it happens.

bug: 8912673
Change-Id: I2aa0c66fc499e91e0bf9ee4ae20404bec35adc82
parent 3042131d
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -466,6 +466,10 @@ void IPCThreadState::joinThreadPool(bool isMain)


            result = executeCommand(cmd);
        } else if (result != TIMED_OUT && result != -ECONNREFUSED && result != -EBADF) {
            ALOGE("talkWithDriver(fd=%d) returned unexpected error %d, aborting",
                  mProcess->mDriverFD, result);
            abort();
        }
        
        // After executing the command, ensure that the thread is returned to the