author | Florian Forster <octo@noris.net> | |
Mon, 31 Mar 2008 13:00:35 +0000 (15:00 +0200) | ||
committer | Florian Forster <octo@noris.net> | |
Mon, 31 Mar 2008 13:00:35 +0000 (15:00 +0200) | ||
commit | b8cf3eff3c9f88615a55b7f4d606912a4a533e71 | |
tree | 5ca041e74d00ae6d7027d1ab56f6e342af5cac9b | tree | snapshot |
parent | e8871c4de3f5f070efe3461a1362ccee4d5dec58 | commit | diff |
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.
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.
src/utils_tail.c | diff | blob | history |