Skip to content

Commit 9d695fc

Browse files
committed
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.
1 parent 4cf2115 commit 9d695fc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/isolation/isolationtester.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -709,6 +709,8 @@ try_complete_step(Step * step, int flags)
709709
ret = select(sock + 1, &read_set, NULL, NULL, &timeout);
710710
if (ret < 0) /* error in select() */
711711
{
712+
if (errno == EINTR)
713+
continue;
712714
fprintf(stderr, "select failed: %s\n", strerror(errno));
713715
exit_nicely();
714716
}

0 commit comments

Comments
 (0)