Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
cddf5946
Commit
cddf5946
authored
Jul 21, 2012
by
Salvatore Sanfilippo
Browse files
Merge pull request #593 from steevel/unstable
Check that we have connection before enabling pipe mode
parents
b62bdf1c
e9828cb6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
cddf5946
...
@@ -1233,7 +1233,7 @@ int main(int argc, char **argv) {
...
@@ -1233,7 +1233,7 @@ int main(int argc, char **argv) {
/* Pipe mode */
/* Pipe mode */
if
(
config
.
pipe_mode
)
{
if
(
config
.
pipe_mode
)
{
cliConnect
(
0
);
if
(
cliConnect
(
0
)
==
REDIS_ERR
)
exit
(
1
)
;
pipeMode
();
pipeMode
();
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment