projects
/
redis.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb3f12
)
Check that we have connection before enabling pipe mode
author
Steeve Lennmark
<steevel@handeldsbanken.se>
Sun, 15 Jul 2012 12:35:02 +0000
(14:35 +0200)
committer
antirez
<antirez@gmail.com>
Sun, 22 Jul 2012 15:19:05 +0000
(17:19 +0200)
src/redis-cli.c
patch
|
blob
|
blame
|
history
diff --git
a/src/redis-cli.c
b/src/redis-cli.c
index 97caf5be8103e582cf35661bfe62c48a7eba1d06..8d20d1cd502ebfd7c53793914a3a9a5477c9db8a 100644
(file)
--- a/
src/redis-cli.c
+++ b/
src/redis-cli.c
@@
-1233,7
+1233,7
@@
int main(int argc, char **argv) {
/* Pipe mode */
if (config.pipe_mode) {
-
cliConnect(0
);
+
if (cliConnect(0) == REDIS_ERR) exit(1
);
pipeMode();
}