make sure to flush stdout every line read in monitor mode, to play well with redirection to file
This commit is contained in:
parent
5402c4262e
commit
d9d8ccab93
@ -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) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user