X-Git-Url: https://git.saurik.com/redis.git/blobdiff_plain/346825c7ed8e5e57704ff2603a51435249b7c59e..25496f47005f87dfb29ca4b797927b3cba555225:/src/redis-cli.c diff --git a/src/redis-cli.c b/src/redis-cli.c index 1b3c0c74..ca2f0623 100644 --- a/src/redis-cli.c +++ b/src/redis-cli.c @@ -1009,7 +1009,7 @@ static void pipeMode(void) { /* Read from socket and feed the hiredis reader. */ do { nread = read(fd,ibuf,sizeof(ibuf)); - if (nread == -1 && errno != EAGAIN) { + if (nread == -1 && errno != EAGAIN && errno != EINTR) { fprintf(stderr, "Error reading from the server: %s\n", strerror(errno)); exit(1); @@ -1052,7 +1052,7 @@ static void pipeMode(void) { ssize_t nwritten = write(fd,obuf+obuf_pos,obuf_len); if (nwritten == -1) { - if (errno != EAGAIN) { + if (errno != EAGAIN && errno != EINTR) { fprintf(stderr, "Error writing to the server: %s\n", strerror(errno)); exit(1);