author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jan 2009 10:01:10 +0000 (11:01 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Sat, 17 Jan 2009 10:01:10 +0000 (11:01 +0100) | ||
commit | 4b8debfceafebfe2d2465fefe1b8b501908f843c | |
tree | b183b94591496c48cbf346bbe295587d1ed17aa5 | tree | snapshot |
parent | 1b5a65328d230599511a5459109019f6f3bb39a0 | commit | diff |
collectd: Don't *abort* on the first read-error with the `-T' option.
The `-T' option used to basically quit the daemon right away when the
first read function of a plugin failed. This patch changes the behavior,
so that:
- All read-functions are tried. If one or more fail, the daemon will
exit with a non-zero exit status, but all read-functions will be
tried.
- Don't quit if one read-function failed without calling all the
shutdown-functions first. This will clean up the UNIX socket of the
unixsock plugin and stuff like that.
The `-T' option used to basically quit the daemon right away when the
first read function of a plugin failed. This patch changes the behavior,
so that:
- All read-functions are tried. If one or more fail, the daemon will
exit with a non-zero exit status, but all read-functions will be
tried.
- Don't quit if one read-function failed without calling all the
shutdown-functions first. This will clean up the UNIX socket of the
unixsock plugin and stuff like that.
src/collectd.c | diff | blob | history | |
src/plugin.c | diff | blob | history |