Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
1d4ebefb
Unverified
Commit
1d4ebefb
authored
May 30, 2021
by
ikeberlein
Committed by
GitHub
May 29, 2021
Browse files
Make pubsub mode grep friendly (#8998)
parent
68e93c22
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/redis-cli.c
View file @
1d4ebefb
...
@@ -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 */
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment