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.
This commit is contained in:
Tom Lane 2013-04-06 22:28:49 -04:00
parent e965e6344c
commit faf4726c9f
1 changed files with 2 additions and 0 deletions

View File

@ -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();
}