X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=unix%2Fuxcons.c;h=716f3fc533d653ccb0b6fa9751124d3df0a7d22f;hb=095072fa46b2d7b8beafaddb2f873d2f500a1e10;hp=641c4b0f4aae914303c2fc44485d52c710cbb5c7;hpb=05e802d5fe8d34b326ad251d5e25b76f7d006b33;p=PuTTY.git diff --git a/unix/uxcons.c b/unix/uxcons.c index 641c4b0f..716f3fc5 100644 --- a/unix/uxcons.c +++ b/unix/uxcons.c @@ -101,7 +101,9 @@ static int block_and_read(int fd, void *buf, size_t len) fd_set rfds; FD_ZERO(&rfds); FD_SET(fd, &rfds); - ret = select(fd+1, &rfds, NULL, NULL, NULL); + do { + ret = select(fd+1, &rfds, NULL, NULL, NULL); + } while (ret < 0 && errno == EINTR); assert(ret != 0); if (ret < 0) return ret;