[rrd-developers] [PATCH] document the "QUIT" command

kevin brintnall kbrint at rufus.net
Sat Nov 8 01:36:23 CET 2008


---
 doc/rrdcached.pod |    4 ++++
 src/rrd_daemon.c  |   10 ++++++++++
 2 files changed, 14 insertions(+), 0 deletions(-)

diff --git a/doc/rrdcached.pod b/doc/rrdcached.pod
index d8f0c73..a346d60 100644
--- a/doc/rrdcached.pod
+++ b/doc/rrdcached.pod
@@ -458,6 +458,10 @@ message itself.  The first user command after B<BATCH> is command number one.
     server:  1 message for command 1
     server:  12 message for command 12
 
+=item B<QUIT>
+
+Disconnect from rrdcached.
+
 =back
 
 =head2 Performance Values
diff --git a/src/rrd_daemon.c b/src/rrd_daemon.c
index 4a686a0..849a709 100644
--- a/src/rrd_daemon.c
+++ b/src/rrd_daemon.c
@@ -1079,6 +1079,7 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */
     "UPDATE <filename> <values> [<values> ...]\n"
     "BATCH\n"
     "STATS\n"
+    "QUIT\n"
   };
 
   char *help_flush[2] =
@@ -1167,6 +1168,13 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */
     "For more information, consult the rrdcached(1) documentation.\n"
   };
 
+  char *help_quit[2] =
+  {
+    "Help for QUIT\n"
+    ,
+    "Disconnect from rrdcached.\n"
+  };
+
   status = buffer_get_field (&buffer, &buffer_size, &command);
   if (status != 0)
     help_text = help_help;
@@ -1186,6 +1194,8 @@ static int handle_request_help (listen_socket_t *sock, /* {{{ */
       help_text = help_stats;
     else if (strcasecmp (command, "batch") == 0)
       help_text = help_batch;
+    else if (strcasecmp (command, "quit") == 0)
+      help_text = help_quit;
     else
       help_text = help_help;
   }
-- 
1.6.0.3



More information about the rrd-developers mailing list