mirror of
https://github.com/postgres/postgres.git
synced 2025-05-02 11:44:50 +03: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
4cf2115072
commit
9d695fc7db
@ -709,6 +709,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…
x
Reference in New Issue
Block a user