freebsd-dev/usr.bin/tail
Marcel Moolenaar d5d2cea180 Better handle the -F case:
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
2006-10-21 18:05:06 +00:00
..
extern.h Add a -q option to suppress header lines when multiple files are specified. 2006-06-29 22:07:49 +00:00
forward.c Better handle the -F case: 2006-10-21 18:05:06 +00:00
Makefile Bump WARNS to 4 as this seems OK on the alpha now. 2005-01-10 20:22:37 +00:00
misc.c Cast size_t to off_t before adding them to avoid warnings on the alpha. 2005-01-10 20:19:46 +00:00
read.c
reverse.c Don't skip the initialisation of tl->len when we hit an EOF immediately 2005-03-20 22:08:52 +00:00
tail.1 - Simplify the formatting in the SYNOPSIS. 2006-06-30 08:19:26 +00:00
tail.c - Simplify the formatting in the SYNOPSIS. 2006-06-30 08:19:26 +00:00