From 46a1f600e785a8cf32fa5a4482363afe6a3e736f 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/program@1656 a5681a0c-68f1-0310-ab6d-d61299d08faa --- src/rrd_daemon.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c index 3226c38..e2a1813 100644 --- a/src/rrd_daemon.c +++ b/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.11.0