author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 15 Mar 2010 21:40:45 +0000 (22:40 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 15 Mar 2010 21:40:45 +0000 (22:40 +0100) |
Conflicts:
src/exec.c
src/exec.c
1 | 2 | |||
---|---|---|---|---|
configure.in | patch | | diff1 | | diff2 | | blob | history |
src/common.c | patch | | diff1 | | diff2 | | blob | history |
src/common.h | patch | | diff1 | | diff2 | | blob | history |
src/configfile.c | patch | | diff1 | | diff2 | | blob | history |
src/exec.c | patch | | diff1 | | diff2 | | blob | history |
src/processes.c | patch | | diff1 | | diff2 | | blob | history |
diff --cc configure.in
Simple merge
diff --cc src/common.c
Simple merge
diff --cc src/common.h
Simple merge
diff --cc src/configfile.c
Simple merge
diff --cc src/exec.c
index 3bd6309fb24b5a3f68378e9e73bdc227d1cc0c10,e60065834e3ba1f0fc123cbbe1c5a89907db2d6f..681b94d67c8b28a334b74c1078389540aacdc570
--- 1/src/exec.c
--- 2/src/exec.c
+++ b/src/exec.c
return (0);
} /* int exec_config }}} */
+static void set_environment (void) /* {{{ */
+{
+ char buffer[1024];
+
+ ssnprintf (buffer, sizeof (buffer), "%i", interval_g);
+ setenv ("COLLECTD_INTERVAL", buffer, /* overwrite = */ 1);
+
+ ssnprintf (buffer, sizeof (buffer), "%s", hostname_g);
+ setenv ("COLLECTD_HOSTNAME", buffer, /* overwrite = */ 1);
+} /* }}} void set_environment */
+
+ __attribute__((noreturn))
static void exec_child (program_list_t *pl) /* {{{ */
{
int status;
diff --cc src/processes.c
Simple merge