From: Tom Lane Date: Sun, 7 Apr 2013 02:28:53 +0000 (-0400) Subject: In isolationtester, retry after EINTR return from select(2). X-Git-Tag: REL9_2_5~119 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9d695fc7db91d3d9fb9d58d491c31b58e9bdcdfa;p=postgresql 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. --- diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 0e94bde107..d44baa541f 100644 --- a/src/test/isolation/isolationtester.c +++ b/src/test/isolation/isolationtester.c @@ -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(); }