[rrd-developers] [PATCH] added "quit" command

Tobias Oetiker tobi at oetiker.ch
Sat Nov 8 19:00:27 CET 2008


thanks
tobi

Yesterday kevin brintnall wrote:

> ---
>  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);
>
>

-- 
Tobi Oetiker, OETIKER+PARTNER AG, Aarweg 15 CH-4600 Olten, Switzerland
http://it.oetiker.ch tobi at oetiker.ch ++41 62 775 9902 / sb: -9900



More information about the rrd-developers mailing list