summaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
authorMan, Jianting (Meco) <[email protected]>2022-03-29 22:47:05 -0400
committerGitHub <[email protected]>2022-03-30 10:47:05 +0800
commitb8bb6a4a87784161c2dd76d50ccd45e0cc436951 (patch)
treebf4364362290ef4dab855147177638b226f77e07 /components
parent06b56d1aaaeae658686a38ee9c9dd68f36551cc3 (diff)
[poll][select] 修复select死循环的问题 (#5740)
Diffstat (limited to 'components')
-rw-r--r--components/libc/posix/io/poll/poll.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/libc/posix/io/poll/poll.c b/components/libc/posix/io/poll/poll.c
index 3c5940b8d3..ba2442c0d5 100644
--- a/components/libc/posix/io/poll/poll.c
+++ b/components/libc/posix/io/poll/poll.c
@@ -168,6 +168,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in
{
pf = fds;
num = 0;
+ pt->triggered = 0;
for (n = 0; n < nfds; n ++)
{