diff options
author | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-07-10 17:51:37 +0200 |
---|---|---|
committer | Pieter Noordhuis <pcnoordhuis@gmail.com> | 2011-07-10 17:51:48 +0200 |
commit | b3290392d9023f47b0840912311138ff58ecbfe3 (patch) | |
tree | a2919cf69320655b06ce09e2a0f4b3d6308b5a24 | |
parent | b52193977e07506e58d8e32fbbe90016d4a67ebc (diff) |
Put back missing socket error check after select(2)
-rw-r--r-- | net.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -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; } |