diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2013-04-06 22:28:53 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2013-04-06 22:28:53 -0400 |
commit | 9d695fc7db91d3d9fb9d58d491c31b58e9bdcdfa (patch) | |
tree | a618123ca8ef43c51977c5c51e54883aff6b8499 /src | |
parent | 4cf2115072b5bdc31748872cfc6ba0c32ba36f6f (diff) |
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.
Diffstat (limited to 'src')
-rw-r--r-- | src/test/isolation/isolationtester.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/test/isolation/isolationtester.c b/src/test/isolation/isolationtester.c index 0e94bde107b..d44baa541f9 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(); } |