From d9445f8a62bafbc68314ded71fcbcd30b7ed2a00 Mon Sep 17 00:00:00 2001 From: maliang_30058418 <18302992148@163.com> Date: Fri, 12 Sep 2025 16:56:22 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E6=9C=89=E7=AC=A6=E5=8F=B7=E6=95=B0?= =?UTF-8?q?=E4=BD=8D=E8=BF=90=E7=AE=97=E5=91=8A=E8=AD=A6=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: maliang --- src/daemon/jdwp.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/daemon/jdwp.cpp b/src/daemon/jdwp.cpp index bbb9a3e2..c1179951 100644 --- a/src/daemon/jdwp.cpp +++ b/src/daemon/jdwp.cpp @@ -678,7 +678,8 @@ void *HdcJdwp::FdEventPollThread(void *args) thisClass->freeContextMutex.unlock(); poll(&pollfds[0], size, -1); for (const auto &pollfdsing : pollfds) { - if (pollfdsing.revents & (POLLNVAL | POLLRDHUP | POLLHUP | POLLERR)) { // POLLNVAL:fd not open + // POLLNVAL:fd not open + if ((static_cast(pollfdsing.revents) & (POLLNVAL | POLLRDHUP | POLLHUP | POLLERR)) != 0) { thisClass->freeContextMutex.lock(); auto it = thisClass->pollNodeMap.find(pollfdsing.fd); if (it != thisClass->pollNodeMap.end()) { @@ -689,7 +690,7 @@ void *HdcJdwp::FdEventPollThread(void *args) } } thisClass->freeContextMutex.unlock(); - } else if (pollfdsing.revents & POLLIN) { + } else if ((static_cast(pollfdsing.revents) & POLLIN) != 0) { if (pollfdsing.fd == thisClass->awakenPollFd) { thisClass->DrainAwakenPollThread(); } -- Gitee