From: Florian Forster Date: Wed, 30 Apr 2008 09:04:23 +0000 (+0200) Subject: Merge branch 'collectd-4.4' X-Git-Tag: collectd-4.5.0~157 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=cacaa2126020832df99fa6423147bd3de6d4faae;p=collectd.git Merge branch 'collectd-4.4' Conflicts: src/collectd-perl.pod src/email.c --- cacaa2126020832df99fa6423147bd3de6d4faae diff --cc src/collectd-perl.pod index 5a58d357,8cdf08bb..b7ae9cac --- a/src/collectd-perl.pod +++ b/src/collectd-perl.pod @@@ -281,11 -292,22 +294,27 @@@ is found (and the number of values matc type, data-set and value-list is passed to all write-callbacks that are registered with the daemon. +B: Prior to version 4.4 of collectd, the data-set type used to be passed +as the first argument to B. This syntax is still supported +for backwards compatibility but has been deprecated and will be removed in +some future version of collectd. + + =item B ([B => I,] [B => I<...>]) + + Flush one or more plugins. I is passed on to the registered + flush-callbacks. If omitted, C<-1> is used. If the I argument has + been specified, only named plugins will be flushed. The argument's value may + either be a string or a reference to an array of strings. + + =item B (I, I) + + This is identical to using "plugin_flush (timeout =E I, plugins + =E I". + + =item B (I) + + This is identical to using "plugin_flush (timeout =E I)". + =item B (I) Submits a I to the daemon which will then pass it to all diff --cc src/email.c index b255ac79,87daed11..200b60c1 --- a/src/email.c +++ b/src/email.c @@@ -511,7 -394,8 +394,7 @@@ static void *open_connection (void *arg addr.sun_family = AF_UNIX; - sstrncpy (addr.sun_path, sock_file, sizeof (addr.sun_path)); - strncpy (addr.sun_path, path, (size_t)(UNIX_PATH_MAX - 1)); - addr.sun_path[UNIX_PATH_MAX - 1] = '\0'; ++ sstrncpy (addr.sun_path, path, (size_t)(UNIX_PATH_MAX - 1)); unlink (addr.sun_path); errno = 0;