Fixed bug #28716: select() returns 0 after waiting for less than 1 ms

This commit is contained in:
goldsimon
2010-01-23 15:01:15 +00:00
parent 82318c0ef1
commit 426dd9bfad
2 changed files with 5 additions and 1 deletions

View File

@@ -991,7 +991,7 @@ lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptset,
sys_sem_signal(selectsem);
sys_sem_free(select_cb.sem);
if (i == 0) {
if (i == SYS_ARCH_TIMEOUT) {
/* Timeout */
if (readset)
FD_ZERO(readset);