X-Git-Url: https://git.octo.it/?a=blobdiff_plain;f=src%2Funixsock.c;h=4a7652ab5a1f4d924902eb5229285db84b81d561;hb=6d8031d73b7c1d874d7afa4cad2f248c4073764d;hp=1faeff9c5cd00fc9ed10bb1afdbd0719587e0329;hpb=da612fa9c6a3343b43789569d64197d7c690be52;p=collectd.git diff --git a/src/unixsock.c b/src/unixsock.c index 1faeff9c..4a7652ab 100644 --- a/src/unixsock.c +++ b/src/unixsock.c @@ -28,7 +28,6 @@ #include "common.h" #include "plugin.h" -#include "configfile.h" #include "utils_cmd_flush.h" #include "utils_cmd_getval.h" @@ -290,7 +289,7 @@ static void *us_handle_client (void *arg) if (strcasecmp (fields[0], "getval") == 0) { - handle_getval (fhout, buffer); + cmd_handle_getval (fhout, buffer); } else if (strcasecmp (fields[0], "getthreshold") == 0) { @@ -298,11 +297,11 @@ static void *us_handle_client (void *arg) } else if (strcasecmp (fields[0], "putval") == 0) { - handle_putval (fhout, buffer); + cmd_handle_putval (fhout, buffer); } else if (strcasecmp (fields[0], "listval") == 0) { - handle_listval (fhout, buffer); + cmd_handle_listval (fhout, buffer); } else if (strcasecmp (fields[0], "putnotif") == 0) { @@ -310,7 +309,7 @@ static void *us_handle_client (void *arg) } else if (strcasecmp (fields[0], "flush") == 0) { - handle_flush (fhout, buffer); + cmd_handle_flush (fhout, buffer); } else { @@ -379,7 +378,7 @@ static void *us_server_thread (void __attribute__((unused)) *arg) DEBUG ("Spawning child to handle connection on fd #%i", *remote_fd); status = plugin_thread_create (&th, &th_attr, - us_handle_client, (void *) remote_fd); + us_handle_client, (void *) remote_fd, "unixsock client"); if (status != 0) { char errbuf[1024]; @@ -460,7 +459,7 @@ static int us_init (void) loop = 1; status = plugin_thread_create (&listen_thread, NULL, - us_server_thread, NULL); + us_server_thread, NULL, "unixsock listener"); if (status != 0) { char errbuf[1024];