[collectd-changes] collectd, the system statistics collection daemon: Changes to 'master'
Florian Forster
octo at verplant.org
Mon Mar 31 18:39:49 CEST 2008
src/utils_tail.c | 232 ++++++++++++++++++++++++++++++++++--------------------
1 files changed, 148 insertions(+), 84 deletions(-)
New commits:
commit b8cf3eff3c9f88615a55b7f4d606912a4a533e71
Author: Florian Forster <octo at noris.net>
Date: Mon Mar 31 15:00:35 2008 +0200
src/utils_tail.c: Call `stat' after reading till the end of file.
The old code used stat(2) to determine if the file was moved and reopened the
file before reading anything. This way lines, that were added to the file
before it was moved, would have been missed. This commit changes that behavior
so that the file is read until EOF and _then_ stat(2) is used to check if the
file has been moved away.
More information about the collectd-changes
mailing list