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
5d15b520
Commit
5d15b520
authored
Aug 25, 2010
by
Pieter Noordhuis
Browse files
Re-introduce the interactive field so we can reconnect in interactive mode
parent
4b93e5e2
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
5d15b520
...
...
@@ -56,6 +56,7 @@ static struct config {
long
repeat
;
int
dbnum
;
int
argn_from_stdin
;
int
interactive
;
int
shutdown
;
int
monitor_mode
;
int
pubsub_mode
;
...
...
@@ -393,6 +394,7 @@ static void repl() {
char
*
line
;
sds
*
argv
;
config
.
interactive
=
1
;
while
((
line
=
linenoise
(
"redis> "
))
!=
NULL
)
{
if
(
line
[
0
]
!=
'\0'
)
{
argv
=
sdssplitargs
(
line
,
&
argc
);
...
...
@@ -440,6 +442,7 @@ int main(int argc, char **argv) {
config
.
repeat
=
1
;
config
.
dbnum
=
0
;
config
.
argn_from_stdin
=
0
;
config
.
interactive
=
0
;
config
.
shutdown
=
0
;
config
.
monitor_mode
=
0
;
config
.
pubsub_mode
=
0
;
...
...
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