projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
src/daemon/plugin.c: Address review comments.
[collectd.git]
/
src
/
unixsock.c
diff --git
a/src/unixsock.c
b/src/unixsock.c
index
5454fd8
..
2df4e09
100644
(file)
--- a/
src/unixsock.c
+++ b/
src/unixsock.c
@@
-25,9
+25,9
@@
**/
#include "collectd.h"
**/
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
#include "common.h"
#include "plugin.h"
-#include "configfile.h"
#include "utils_cmd_flush.h"
#include "utils_cmd_getval.h"
#include "utils_cmd_flush.h"
#include "utils_cmd_getval.h"
@@
-289,7
+289,7
@@
static void *us_handle_client (void *arg)
if (strcasecmp (fields[0], "getval") == 0)
{
if (strcasecmp (fields[0], "getval") == 0)
{
- handle_getval (fhout, buffer);
+
cmd_
handle_getval (fhout, buffer);
}
else if (strcasecmp (fields[0], "getthreshold") == 0)
{
}
else if (strcasecmp (fields[0], "getthreshold") == 0)
{
@@
-297,11
+297,11
@@
static void *us_handle_client (void *arg)
}
else if (strcasecmp (fields[0], "putval") == 0)
{
}
else if (strcasecmp (fields[0], "putval") == 0)
{
- handle_putval (fhout, buffer);
+
cmd_
handle_putval (fhout, buffer);
}
else if (strcasecmp (fields[0], "listval") == 0)
{
}
else if (strcasecmp (fields[0], "listval") == 0)
{
- handle_listval (fhout, buffer);
+
cmd_
handle_listval (fhout, buffer);
}
else if (strcasecmp (fields[0], "putnotif") == 0)
{
}
else if (strcasecmp (fields[0], "putnotif") == 0)
{
@@
-309,7
+309,7
@@
static void *us_handle_client (void *arg)
}
else if (strcasecmp (fields[0], "flush") == 0)
{
}
else if (strcasecmp (fields[0], "flush") == 0)
{
- handle_flush (fhout, buffer);
+
cmd_
handle_flush (fhout, buffer);
}
else
{
}
else
{
@@
-378,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,
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 conn"
);
if (status != 0)
{
char errbuf[1024];
if (status != 0)
{
char errbuf[1024];
@@
-459,7
+459,7
@@
static int us_init (void)
loop = 1;
status = plugin_thread_create (&listen_thread, NULL,
loop = 1;
status = plugin_thread_create (&listen_thread, NULL,
- us_server_thread, NULL);
+ us_server_thread, NULL
, "unixsock listen"
);
if (status != 0)
{
char errbuf[1024];
if (status != 0)
{
char errbuf[1024];