postgres.git / summary / log / commit / refs
commit faf4726c9fd5748ad25dbce55a7d31deeabe9866
Author: Tom Lane <tgl@sss.pgh.pa.us>
Date: Sun Apr 07 02:28:49 2013 +0000
First released in: 9.3.0, 9.2.5
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.
src/test/isolation/isolationtester.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c
index c61d54c51f8..f2807799d6e 100644
--- a/src/test/isolation/isolationtester.c
+++ b/src/test/isolation/isolationtester.c
@@ -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();
}
[parent: e965e6344cfa]