[poll][select] 修复select死循环的问题 (#5740)
This commit is contained in:
parent
06b56d1aaa
commit
b8bb6a4a87
|
@ -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 ++)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue