mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 22:02:43 +00:00
d5d2cea180
o When stat(2) fails (i.e. the file has been moved) there's no new file with the same name yet, so keep showing the file that's open. This yields the same behaviour as -f, for which we don't stat(2). o When a new file with the same name has been created (i.e stat(2) succeeds but the inode or device numbers differ from the opened file), show any new lines in the opened file (i.e. the old or rotated file) before reopening the new file. These changes fix the observed behaviour that tail(1) doesn't show the very last lines of the rotated (log) files. PR: bin/101979 Tested by: Jos Backus <jos@catnook.com> MFC after: 2 months |
||
---|---|---|
.. | ||
extern.h | ||
forward.c | ||
Makefile | ||
misc.c | ||
read.c | ||
reverse.c | ||
tail.1 | ||
tail.c |