]> git.saurik.com Git - redis.git/commitdiff
make sure to flush stdout every line read in monitor mode, to play well with redirect...
authorantirez <antirez@gmail.com>
Mon, 8 Nov 2010 15:14:15 +0000 (16:14 +0100)
committerantirez <antirez@gmail.com>
Mon, 8 Nov 2010 15:14:15 +0000 (16:14 +0100)
src/redis-cli.c

index fec0fce408b9e1b84e5e7f2eafe9eaec47b9874f..450c6d58794fe26a38e36b02a1834d474b18d106 100644 (file)
@@ -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) {