Skip to content

Commit b8bb6a4

Browse files
authored
[poll][select] 修复select死循环的问题 (#5740)
1 parent 06b56d1 commit b8bb6a4

File tree

1 file changed

+1
-0
lines changed
  • components/libc/posix/io/poll

1 file changed

+1
-0
lines changed

components/libc/posix/io/poll/poll.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -168,6 +168,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in
168168
{
169169
pf = fds;
170170
num = 0;
171+
pt->triggered = 0;
171172

172173
for (n = 0; n < nfds; n ++)
173174
{

0 commit comments

Comments
 (0)