Skip to content

Commit

Permalink
Merge pull request nasa#902 from jphickey/fix-858-check-eagain
Browse files Browse the repository at this point in the history
Fix nasa#858, add check for EAGAIN in addition to EINTR
  • Loading branch information
astrogeco committed Mar 22, 2021
2 parents 4725184 + d7c851f commit c29a2f4
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 c29a2f4

Please sign in to comment.