Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit faf4726

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 e965e63 commit faf4726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/isolation/isolationtester.c

+2
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ try_complete_step(Step * step, int flags)
716716
ret = select(sock + 1, &read_set, NULL, NULL, &timeout);
717717
if (ret < 0) /* error in select() */
718718
{
719+
if (errno == EINTR)
720+
continue;
719721
fprintf(stderr, "select failed: %s\n", strerror(errno));
720722
exit_nicely();
721723
}

0 commit comments

Comments
 (0)