[poll][select] 修复select死循环的问题 (#5740)

This commit is contained in:
Man, Jianting (Meco) 2022-03-29 22:47:05 -04:00 committed by GitHub
parent 06b56d1aaa
commit b8bb6a4a87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -168,6 +168,7 @@ static int poll_do(struct pollfd *fds, nfds_t nfds, struct rt_poll_table *pt, in
{ {
pf = fds; pf = fds;
num = 0; num = 0;
pt->triggered = 0;
for (n = 0; n < nfds; n ++) for (n = 0; n < nfds; n ++)
{ {