Loading libs/binder/RpcServer.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -657,6 +657,8 @@ unique_fd RpcServer::releaseServer() { status_t RpcServer::setupExternalServer( unique_fd serverFd, std::function<status_t(const RpcServer&, RpcTransportFd*)>&& acceptFn) { if (status_t res = binder::os::setNonBlocking(serverFd); res != OK) return res; RpcMutexLockGuard _l(mLock); if (mServer.fd.ok()) { ALOGE("Each RpcServer can only have one server."); Loading libs/binder/RpcSession.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ status_t RpcSession::setupUnixDomainClient(const char* path) { } status_t RpcSession::setupUnixDomainSocketBootstrapClient(unique_fd bootstrapFd) { if (status_t res = binder::os::setNonBlocking(bootstrapFd); res != OK) return res; mBootstrapTransport = mCtx->newTransport(RpcTransportFd(std::move(bootstrapFd)), mShutdownTrigger.get()); return setupClient([&](const std::vector<uint8_t>& sessionId, bool incoming) { Loading Loading
libs/binder/RpcServer.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -657,6 +657,8 @@ unique_fd RpcServer::releaseServer() { status_t RpcServer::setupExternalServer( unique_fd serverFd, std::function<status_t(const RpcServer&, RpcTransportFd*)>&& acceptFn) { if (status_t res = binder::os::setNonBlocking(serverFd); res != OK) return res; RpcMutexLockGuard _l(mLock); if (mServer.fd.ok()) { ALOGE("Each RpcServer can only have one server."); Loading
libs/binder/RpcSession.cpp +2 −0 Original line number Diff line number Diff line Loading @@ -142,6 +142,8 @@ status_t RpcSession::setupUnixDomainClient(const char* path) { } status_t RpcSession::setupUnixDomainSocketBootstrapClient(unique_fd bootstrapFd) { if (status_t res = binder::os::setNonBlocking(bootstrapFd); res != OK) return res; mBootstrapTransport = mCtx->newTransport(RpcTransportFd(std::move(bootstrapFd)), mShutdownTrigger.get()); return setupClient([&](const std::vector<uint8_t>& sessionId, bool incoming) { Loading