Skip to content

Commit

Permalink
SMSTCPIP: backported patch for bug #28716 (2010-01-23) - select() ret…
Browse files Browse the repository at this point in the history
…urns 0 after waiting for less than 1 ms.
  • Loading branch information
sp193 committed Feb 12, 2019
1 parent 68d3aa9 commit 57bc8c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/network/SMSTCPIP/sockets.c
Original file line number Diff line number Diff line change
Expand Up @@ -745,7 +745,7 @@ int lwip_select(int maxfdp1, fd_set *readset, fd_set *writeset, fd_set *exceptse
sys_sem_signal(selectsem);

sys_sem_free(select_cb.sem);
if (i == 0) /* Timeout */
if (i == SYS_ARCH_TIMEOUT) /* Timeout */
{
if (readset)
FD_ZERO(readset);
Expand Down

0 comments on commit 57bc8c8

Please sign in to comment.