Commit faf4726c authored by Tom Lane's avatar Tom Lane

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 e965e634
...@@ -716,6 +716,8 @@ try_complete_step(Step * step, int flags) ...@@ -716,6 +716,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();
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment