Skip to content

Commit

Permalink
make sure to flush stdout every line read in monitor mode, to play we…
Browse files Browse the repository at this point in the history
…ll with redirection to file
  • Loading branch information
antirez committed Nov 8, 2010
1 parent 5402c42 commit d9d8cca
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/redis-cli.c
Expand Up @@ -291,6 +291,7 @@ static int cliSendCommand(int argc, char **argv, int repeat) {
redisAppendCommandArgv(context,argc,(const char**)argv,argvlen);
while (config.monitor_mode) {
if (cliReadReply() != REDIS_OK) exit(1);
fflush(stdout);
}

if (config.pubsub_mode) {
Expand Down

0 comments on commit d9d8cca

Please sign in to comment.