freebsd-nq/usr.bin/tail
Ian Dowse aee1bac713 Since kqueue support was added to tail, the "-F" option (check for
renames/rotations) only detected cases where the file itself was
moved or deleted. If part of the path to the file (or a symlink
in the path) was changed instead, tail would not notice.

Fix this by ensuring that we stat the path at least once every
second in the -F case to check for changes. We still use kqueue
when possible to inform us quickly when the file has changed.

PR:		bin/24955
Submitted by:	Maxim Konovalov <maxim@macomnet.ru>
MFC after:	1 week
2001-11-25 18:03:28 +00:00
..
extern.h File positions are off_t nowdays, not long, so: 2001-09-01 22:22:45 +00:00
forward.c Since kqueue support was added to tail, the "-F" option (check for 2001-11-25 18:03:28 +00:00
Makefile
misc.c
read.c
reverse.c File positions are off_t nowdays, not long, so: 2001-09-01 22:22:45 +00:00
tail.1 mdoc(7) police: utilize the new .Ex macro. 2001-08-15 09:09:47 +00:00
tail.c Allow "obsolete" (but commonly-used) command line style to be used 2001-10-02 06:22:01 +00:00