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
d9d8ccab
Commit
d9d8ccab
authored
Nov 08, 2010
by
antirez
Browse files
make sure to flush stdout every line read in monitor mode, to play well with redirection to file
parent
5402c426
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
d9d8ccab
...
@@ -291,6 +291,7 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
...
@@ -291,6 +291,7 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
redisAppendCommandArgv
(
context
,
argc
,(
const
char
**
)
argv
,
argvlen
);
redisAppendCommandArgv
(
context
,
argc
,(
const
char
**
)
argv
,
argvlen
);
while
(
config
.
monitor_mode
)
{
while
(
config
.
monitor_mode
)
{
if
(
cliReadReply
()
!=
REDIS_OK
)
exit
(
1
);
if
(
cliReadReply
()
!=
REDIS_OK
)
exit
(
1
);
fflush
(
stdout
);
}
}
if
(
config
.
pubsub_mode
)
{
if
(
config
.
pubsub_mode
)
{
...
...
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