[rrd-developers] [PATCH] added "quit" command
kevin brintnall
kbrint at rufus.net
Fri Nov 7 22:10:39 CET 2008
---
src/rrd_daemon.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index bba371c..4a686a0 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);
--
1.6.0.3
More information about the rrd-developers
mailing list