Skip to content

Commit faf4726

Browse files
committed
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.
1 parent e965e63 commit faf4726

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/test/isolation/isolationtester.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -716,6 +716,8 @@ try_complete_step(Step * step, int flags)
716716
ret = select(sock + 1, &read_set, NULL, NULL, &timeout);
717717
if (ret < 0) /* error in select() */
718718
{
719+
if (errno == EINTR)
720+
continue;
719721
fprintf(stderr, "select failed: %s\n", strerror(errno));
720722
exit_nicely();
721723
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy