Date: Sun, 25 Nov 2001 10:03:28 -0800 (PST) From: Ian Dowse <iedowse@FreeBSD.org> To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tail forward.c Message-ID: <200111251803.fAPI3SG79146@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
iedowse 2001/11/25 10:03:28 PST
Modified files:
usr.bin/tail forward.c
Log:
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
Revision Changes Path
1.28 +35 -31 src/usr.bin/tail/forward.c
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe cvs-all" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200111251803.fAPI3SG79146>
