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