Permalink
Browse files

make sure to flush stdout every line read in monitor mode, to play we…

…ll with redirection to file
  • Loading branch information...
1 parent 5402c42 commit d9d8ccab93ac18ab38ac19811bc05582c7f9f550 @antirez committed Nov 8, 2010
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/redis-cli.c
View
@@ -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) {

0 comments on commit d9d8cca

Please sign in to comment.