[collectd-changes] collectd, the system statistics collection daemon: Changes to 'collectd-4.4'

Florian Forster octo at verplant.org
Tue May 6 14:24:00 CEST 2008


 .gitignore                       |    3 +
 configure.in                     |   52 +-
 src/Makefile.am                  |   11 +-
 src/collectd-nagios.c            |   27 +-
 src/collectd.c                   |   13 +-
 src/iptables.c                   |    4 +-
 src/libiptc/Makefile.am          |   14 +
 src/libiptc/ipt_kernel_headers.h |   45 +
 src/libiptc/libip4tc.c           |  516 +++++++++
 src/libiptc/libip6tc.c           |  455 ++++++++
 src/libiptc/libip6tc.h           |  173 +++
 src/libiptc/libiptc.c            | 2296 ++++++++++++++++++++++++++++++++++++++
 src/libiptc/libiptc.h            |  185 +++
 src/libiptc/linux_list.h         |  741 ++++++++++++
 src/unixsock.c                   |   36 +-
 src/utils_cmd_flush.c            |   17 +-
 src/utils_cmd_getval.c           |   39 +-
 src/utils_cmd_listval.c          |   20 +-
 src/utils_cmd_putnotif.c         |   25 +-
 src/utils_cmd_putval.c           |   29 +-
 20 files changed, 4626 insertions(+), 75 deletions(-)

New commits:
commit 42815bcf65f8c6b7eeb915ef88dab7d11dd8eede
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri May 2 01:14:32 2008 +0200

    collectd-nagios: Open two different I/O streams for reading and writing.
    
    Full-duplex standard I/O streams are not really supported on sockets.
    
    Signed-off-by: Sebastian Harl <sh at tokkee.org>
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>

commit 3ac843c7529bb0b548d0940f081c07f6f73822c0
Author: Sebastian Harl <sh at tokkee.org>
Date:   Fri May 2 01:13:24 2008 +0200

    daemon: Ignore SIGPIPE.
    
    The default action for the PIPE signal is to terminate the process. This
    is not really what we want for collectd, as e.g. a client of the unixsock
    plugin (which might even be running without root privileges) could kill
    the daemon by closing the socket right after sending a request.
    
    The signal now gets ignored and each I/O function is checked for success.
    To simply that, the unixsock's output stream is now configured to be line
    buffered, removing the need to call fflush() (which could fail as well and
    would have to be checked for success).
    
    While I was at it, I renamed the sigaction struct for SIGCHLD to fit the
    coding style used elsewhere in collectd.
    
    Signed-off-by: Sebastian Harl <sh at tokkee.org>
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>

commit 6b93a8f0ade39c344013e11d3f8ae636e2930324
Author: Sebastian Harl <sh at tokkee.org>
Date:   Thu May 1 12:48:02 2008 +0200

    Add libiptc.
    
    libiptc is not meant to be a public interface by upstream. Debian has thus
    removed it from all packages. To be able to use it, we need to take care
    of it ourselves.
    
    The configure script now checks, if libiptc is available and uses the
    shipped version as a fallback.
    
    The following changes to the libiptc sources were required:
     * added copyright headers mentioning the "Netfilter Core Team" as author
     * changed libiptc/* includes to * only
     * made libiptc.c:standard_target_map() static
    
    Signed-off-by: Sebastian Harl <sh at tokkee.org>
    Signed-off-by: Florian Forster <octo at huhu.verplant.org>




More information about the collectd-changes mailing list