mirror of
https://codeberg.org/redict/redict.git
synced 2025-01-22 16:18:28 -05:00
parent
6fbaeddf3f
commit
e10c5444e7
@ -524,7 +524,8 @@ static int cliReadReply(int output_raw_strings) {
|
||||
}
|
||||
if (config.interactive) {
|
||||
/* Filter cases where we should reconnect */
|
||||
if (context->err == REDIS_ERR_IO && errno == ECONNRESET)
|
||||
if (context->err == REDIS_ERR_IO &&
|
||||
(errno == ECONNRESET || errno == EPIPE))
|
||||
return REDIS_ERR;
|
||||
if (context->err == REDIS_ERR_EOF)
|
||||
return REDIS_ERR;
|
||||
@ -1914,6 +1915,8 @@ int main(int argc, char **argv) {
|
||||
argc -= firstarg;
|
||||
argv += firstarg;
|
||||
|
||||
signal(SIGPIPE, SIG_IGN);
|
||||
|
||||
/* Latency mode */
|
||||
if (config.latency_mode) {
|
||||
if (cliConnect(0) == REDIS_ERR) exit(1);
|
||||
|
Loading…
Reference in New Issue
Block a user