From b3290392d9023f47b0840912311138ff58ecbfe3 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Sun, 10 Jul 2011 17:51:37 +0200 Subject: Put back missing socket error check after select(2) --- net.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/net.c b/net.c index 35b6ad2..d967e5b 100644 --- a/net.c +++ b/net.c @@ -141,6 +141,9 @@ static int redisContextWaitReady(redisContext *c, int fd, const struct timeval * return REDIS_ERR; } + if (redisCheckSocketError(c, fd) != REDIS_OK) + return REDIS_ERR; + return REDIS_OK; } -- cgit v1.2.3