author | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Nov 2006 18:34:53 +0000 (19:34 +0100) | ||
committer | Florian Forster <octo@leeloo.lan.home.verplant.org> | |
Mon, 6 Nov 2006 18:34:53 +0000 (19:34 +0100) | ||
commit | 1ed0132c7c7962a5bec018faf0bb00db3a823396 | |
tree | 1195ead79cce06a98a221693a82da96ff4c2a384 | tree | snapshot |
parent | 994f35f120c06728701ecdc3b0691c804cb324b7 | commit | diff |
plugin_read_all: Check the `loop' variable after each iteration and return early if the daemon is shutting down.
Lubos Stanek has reported that the daemon may stop too slow, resulting in it
being killed by impatient init-scripts. With this patch `plugin_read_all'
checks the `loop' variable before entering each plugin's read-function. If the
loop-variable is set to non-zero it will return early, allowing the daemon to
shutdown more instantly.
Lubos Stanek has reported that the daemon may stop too slow, resulting in it
being killed by impatient init-scripts. With this patch `plugin_read_all'
checks the `loop' variable before entering each plugin's read-function. If the
loop-variable is set to non-zero it will return early, allowing the daemon to
shutdown more instantly.
src/collectd.c | diff | blob | history | |
src/plugin.c | diff | blob | history | |
src/plugin.h | diff | blob | history |