Skip to content
Snippets Groups Projects
Commit 9d695fc7 authored by Tom Lane's avatar Tom Lane
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.
parent 4cf21150
No related branches found
No related tags found
No related merge requests found
...@@ -709,6 +709,8 @@ try_complete_step(Step * step, int flags) ...@@ -709,6 +709,8 @@ try_complete_step(Step * step, int flags)
ret = select(sock + 1, &read_set, NULL, NULL, &timeout); ret = select(sock + 1, &read_set, NULL, NULL, &timeout);
if (ret < 0) /* error in select() */ if (ret < 0) /* error in select() */
{ {
if (errno == EINTR)
continue;
fprintf(stderr, "select failed: %s\n", strerror(errno)); fprintf(stderr, "select failed: %s\n", strerror(errno));
exit_nicely(); exit_nicely();
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment