From 674194ad42a8b8960ee8b939da4ba400bb21ac49 Mon Sep 17 00:00:00 2001 From: antirez Date: Mon, 16 Jun 2014 14:50:15 +0200 Subject: [PATCH] CLIENT KILL API modified. Added a new SKIPME option that is true by default, that prevents the client sending the command to be killed, unless SKIPME NO is sent. --- src/networking.c | 60 +++++++++++++++++++++++++++++++----------------- 1 file changed, 39 insertions(+), 21 deletions(-) diff --git a/src/networking.c b/src/networking.c index acf8e65b..63c15314 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1325,35 +1325,52 @@ void clientCommand(redisClient *c) { sdsfree(o); } else if (!strcasecmp(c->argv[1]->ptr,"kill")) { /* CLIENT KILL - * CLIENT KILL */ + * CLIENT KILL