From bb2011d992cebbfaa94d099c043c55f2342690cb 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 | 58 +++++++++++++++++++++++++++++++----------------- 1 file changed, 38 insertions(+), 20 deletions(-) diff --git a/src/networking.c b/src/networking.c index 5480dfc3..78d18086 100644 --- a/src/networking.c +++ b/src/networking.c @@ -1352,35 +1352,52 @@ void clientCommand(redisClient *c) { sdsfree(o); } else if (!strcasecmp(c->argv[1]->ptr,"kill")) { /* CLIENT KILL - * CLIENT KILL */ + * CLIENT KILL