Unverified Commit 1d4ebefb authored by ikeberlein's avatar ikeberlein Committed by GitHub
Browse files

Make pubsub mode grep friendly (#8998)

parent 68e93c22
...@@ -1360,6 +1360,7 @@ static int cliSendCommand(int argc, char **argv, long repeat) { ...@@ -1360,6 +1360,7 @@ static int cliSendCommand(int argc, char **argv, long repeat) {
printf("Reading messages... (press Ctrl-C to quit)\n"); printf("Reading messages... (press Ctrl-C to quit)\n");
while (1) { while (1) {
if (cliReadReply(output_raw) != REDIS_OK) exit(1); if (cliReadReply(output_raw) != REDIS_OK) exit(1);
fflush(stdout); /* Make it grep friendly */
} }
} }
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment