author | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 1 Mar 2016 11:47:25 +0000 (12:47 +0100) | ||
committer | Ruben Kerkhof <ruben@rubenkerkhof.com> | |
Tue, 1 Mar 2016 11:47:25 +0000 (12:47 +0100) |
1 | 2 | |||
---|---|---|---|---|
src/barometer.c | patch | | diff1 | | diff2 | | blob | history |
src/daemon/collectd.c | patch | | diff1 | | diff2 | | blob | history |
src/daemon/plugin.h | patch | | diff1 | | diff2 | | blob | history |
src/daemon/utils_cache.c | patch | | diff1 | | diff2 | | blob | history |
src/redis.c | patch | | diff1 | | diff2 | | blob | history |
src/write_riemann.c | patch | | diff1 | | diff2 | | blob | history |
src/write_riemann_threshold.c | patch | | diff1 | | diff2 | | blob | history |
src/write_sensu.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc src/barometer.c
Simple merge
diff --cc src/daemon/collectd.c
index 7b324e1e3a6513b47bf453e634c91bedfa831bea,6e625bbb04cdc062f87335a45153523a6cf75c57..a745d7d1ad367c93bf9d823f78298b68e0ccba93
+++ b/src/daemon/collectd.c
#endif /* COLLECT_DAEMON */
#ifdef KERNEL_LINUX
- int notify_upstart (void)
+ static int notify_upstart (void)
{
- const char *upstart_job = getenv("UPSTART_JOB");
+ char const *upstart_job = getenv("UPSTART_JOB");
if (upstart_job == NULL)
return 0;
return 1;
}
- int notify_systemd (void)
+ static int notify_systemd (void)
{
- int fd = -1;
- const char *notifysocket = getenv("NOTIFY_SOCKET");
+ int fd;
+ const char *notifysocket;
struct sockaddr_un su;
- struct iovec iov;
- struct msghdr hdr;
+ size_t su_size;
+ char buffer[] = "READY=1\n";
+ notifysocket = getenv ("NOTIFY_SOCKET");
if (notifysocket == NULL)
return 0;
diff --cc src/daemon/plugin.h
Simple merge
diff --cc src/daemon/utils_cache.c
Simple merge
diff --cc src/redis.c
Simple merge
diff --cc src/write_riemann.c
index 5c59c92e4c50341c27fcb380188363685783d5d6,58611a96fe2ec40adff997503eea1ae8dcf2284b..6a47ba3224cd52d6bbf5d75ca24cf73af6d55f41
--- 1/src/write_riemann.c
--- 2/src/write_riemann.c
+++ b/src/write_riemann.c
* Florian octo Forster <octo at collectd.org>
*/
-#include <sys/socket.h>
+ #include <arpa/inet.h>
+ #include <errno.h>
+ #include <netdb.h>
+ #include <inttypes.h>
+ #include <pthread.h>
+
#include "collectd.h"
#include "plugin.h"
#include "common.h"
diff --cc src/write_riemann_threshold.c
Simple merge
diff --cc src/write_sensu.c
Simple merge