Skip to content

Commit

Permalink
In isolationtester, retry after EINTR return from select(2).
Browse files Browse the repository at this point in the history
Per report from Jaime Casanova.  Very curious that no one else has seen
this failure ... but the code is clearly wrong as-is.
  • Loading branch information
tglsfdc committed Apr 7, 2013
1 parent e965e63 commit faf4726
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/test/isolation/isolationtester.c
Original file line number Diff line number Diff line change
Expand Up @@ -716,6 +716,8 @@ try_complete_step(Step * step, int flags)
ret = select(sock + 1, &read_set, NULL, NULL, &timeout);
if (ret < 0) /* error in select() */
{
if (errno == EINTR)
continue;
fprintf(stderr, "select failed: %s\n", strerror(errno));
exit_nicely();
}
Expand Down

0 comments on commit faf4726

Please sign in to comment.