From owner-cvs-all Sun Nov 25 10: 3:32 2001 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id AE92437B405; Sun, 25 Nov 2001 10:03:28 -0800 (PST) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.4/8.11.4) id fAPI3SG79146; Sun, 25 Nov 2001 10:03:28 -0800 (PST) (envelope-from iedowse) Message-Id: <200111251803.fAPI3SG79146@freefall.freebsd.org> From: Ian Dowse Date: Sun, 25 Nov 2001 10:03:28 -0800 (PST) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/usr.bin/tail forward.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG 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 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