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

Commit 77c4d2d0 authored by Steven Moreland's avatar Steven Moreland Committed by Automerger Merge Worker
Browse files

Merge "libbinder: setupPolling flushes commands" am: b86f8920 am: c8e80ed7

Original change: https://android-review.googlesource.com/c/platform/frameworks/native/+/1552567

MUST ONLY BE SUBMITTED BY AUTOMERGER

Change-Id: I9cd924a82a8240b57e1704888bd97af68852e2f7
parents e25f600c c8e80ed7
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -45,10 +45,6 @@ public:
        IPCThreadState::self()->setupPolling(&binder_fd);
        LOG_ALWAYS_FATAL_IF(binder_fd < 0, "Failed to setupPolling: %d", binder_fd);

        // Flush after setupPolling(), to make sure the binder driver
        // knows about this thread handling commands.
        IPCThreadState::self()->flushCommands();

        int ret = looper->addFd(binder_fd,
                                Looper::POLL_CALLBACK,
                                Looper::EVENT_INPUT,
+1 −0
Original line number Diff line number Diff line
@@ -629,6 +629,7 @@ status_t IPCThreadState::setupPolling(int* fd)
    }

    mOut.writeInt32(BC_ENTER_LOOPER);
    flushCommands();
    *fd = mProcess->mDriverFD;
    return 0;
}