From: oetiker Date: Sat, 8 Nov 2008 18:00:21 +0000 (+0000) Subject: added "quit" command -- kevin X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=2abf5a7d87daf3077dbd039d8b03ca4ba804339e;p=rrdtool-all.git added "quit" command -- kevin git-svn-id: svn://svn.oetiker.ch/rrdtool/trunk@1656 a5681a0c-68f1-0310-ab6d-d61299d08faa --- 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);