[Bug 10196] New: tail -F loses information during log rotation
bugzilla at busybox.net
bugzilla at busybox.net
Wed Aug 9 14:37:51 UTC 2017
https://bugs.busybox.net/show_bug.cgi?id=10196
Bug ID: 10196
Summary: tail -F loses information during log rotation
Product: Busybox
Version: 1.23.x
Hardware: All
OS: Linux
Status: NEW
Severity: normal
Priority: P5
Component: Other
Assignee: unassigned at busybox.net
Reporter: jpc at loee.pl
CC: busybox-cvs at busybox.net
Target Milestone: ---
Hi,
I am using svlogd for logging and tail -F current to follow on them. I noticed
that sometimes I would miss some lines that were added to the files immediately
before they were renamed.
I looked into the code and noticed that (when FOLLOW_RETRY is true) after
sleeping tail immediately checks if the file was replaced (the inode changed)
before it tries to read and print the remaining bytes. As far as I understand
it this means that if the old file was appended to and the renamed it would
miss this information.
Have anyone noticed it before? I probably should write a test case for this and
think about a patch but I would like to hear a second opinion on this first.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the busybox-cvs
mailing list