mirror of
https://git.postgresql.org/git/postgresql.git
synced 2025-01-24 18:55:04 +08:00
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:
parent
e965e6344c
commit
faf4726c9f
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user