Skip to content

Commit

Permalink
Merge pull request #902 from jphickey/fix-858-check-eagain
Browse files Browse the repository at this point in the history
Fix #858, add check for EAGAIN in addition to EINTR
  • Loading branch information
astrogeco authored Mar 19, 2021
2 parents 6f033be + d7c851f commit 0c21757
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/os/portable/os-impl-bsd-select.c
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ static int32 OS_DoSelect(int maxfd, fd_set *rd_set, fd_set *wr_set, int32 msecs)
}

os_status = select(maxfd + 1, rd_set, wr_set, NULL, tvptr);
} while (os_status < 0 && errno == EINTR);
} while (os_status < 0 && (errno == EINTR || errno == EAGAIN));

if (os_status < 0)
{
Expand Down

0 comments on commit 0c21757

Please sign in to comment.