Merge branch 'collectd-4.4'
authorFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 09:04:23 +0000 (11:04 +0200)
committerFlorian Forster <octo@huhu.verplant.org>
Wed, 30 Apr 2008 09:04:23 +0000 (11:04 +0200)
Conflicts:

src/collectd-perl.pod
src/email.c

1  2 
src/collectd-perl.pod
src/collectd.c
src/email.c
src/interface.c
src/load.c
src/memory.c
src/perl.c
src/swap.c

@@@ -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<Note>: Prior to version 4.4 of collectd, the data-set type used to be passed
 +as the first argument to B<plugin_register>. This syntax is still supported
 +for backwards compatibility but has been deprecated and will be removed in
 +some future version of collectd.
 +
+ =item B<plugin_flush> ([B<timeout> => I<timeout>,] [B<plugins> => I<...>])
+ Flush one or more plugins. I<timeout> is passed on to the registered
+ flush-callbacks. If omitted, C<-1> is used. If the I<plugins> 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<plugin_flush_one> (I<timeout>, I<plugin>)
+ This is identical to using "plugin_flush (timeout =E<gt> I<timeout>, plugins
+ =E<gt> I<plugin>".
+ =item B<plugin_flush_all> (I<timeout>)
+ This is identical to using "plugin_flush (timeout =E<gt> I<timeout>)".
  =item B<plugin_dispatch_notification> (I<notification>)
  
  Submits a I<notification> to the daemon which will then pass it to all
diff --cc src/collectd.c
Simple merge
diff --cc 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;
diff --cc src/interface.c
Simple merge
diff --cc src/load.c
Simple merge
diff --cc src/memory.c
Simple merge
diff --cc src/perl.c
Simple merge
diff --cc src/swap.c
Simple merge