Permalink
Browse files

In isolationtester, retry after EINTR return from select(2).

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...
1 parent e965e63 commit faf4726c9fd5748ad25dbce55a7d31deeabe9866 @tglsfdc tglsfdc committed Apr 7, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 src/test/isolation/isolationtester.c
@@ -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();
}

0 comments on commit faf4726

Please sign in to comment.