diff options
-rw-r--r-- | cmds/servicemanager/main.cpp | 4 | ||||
-rw-r--r-- | libs/binder/IPCThreadState.cpp | 1 |
2 files changed, 1 insertions, 4 deletions
diff --git a/cmds/servicemanager/main.cpp b/cmds/servicemanager/main.cpp index b1bc6dc7d5..627dfe6382 100644 --- a/cmds/servicemanager/main.cpp +++ b/cmds/servicemanager/main.cpp @@ -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, diff --git a/libs/binder/IPCThreadState.cpp b/libs/binder/IPCThreadState.cpp index 7d01e0b1c3..2eee2c40a3 100644 --- a/libs/binder/IPCThreadState.cpp +++ b/libs/binder/IPCThreadState.cpp @@ -629,6 +629,7 @@ status_t IPCThreadState::setupPolling(int* fd) } mOut.writeInt32(BC_ENTER_LOOPER); + flushCommands(); *fd = mProcess->mDriverFD; return 0; } |