From 2abf5a7d87daf3077dbd039d8b03ca4ba804339e Mon Sep 17 00:00:00 2001 From: oetiker Date: Sat, 8 Nov 2008 18:00:21 +0000 Subject: [PATCH] added "quit" command -- kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1656 a5681a0c-68f1-0310-ab6d-d61299d08faa --- program/src/rrd_daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/program/src/rrd_daemon.c b/program/src/rrd_daemon.c index 3226c387..e2a1813a 100644 --- a/program/src/rrd_daemon.c +++ b/program/src/rrd_daemon.c @@ -1640,6 +1640,8 @@ static int handle_request (listen_socket_t *sock, /* {{{ */ return batch_start(sock); else if (strcasecmp (command, ".") == 0 && sock != NULL && sock->batch_start) return batch_done(sock); + else if (strcasecmp (command, "quit") == 0) + return -1; else return send_response(sock, RESP_ERR, "Unknown command: %s\n", command); -- 2.30.2