From owner-cvs-all Thu Jun 22 11:46: 7 2000 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.ORG [204.216.27.21]) by hub.freebsd.org (Postfix) with ESMTP id AD89737B567; Thu, 22 Jun 2000 11:46:03 -0700 (PDT) (envelope-from jlemon@FreeBSD.org) Received: (from jlemon@localhost) by freefall.freebsd.org (8.9.3/8.9.2) id LAA36691; Thu, 22 Jun 2000 11:46:03 -0700 (PDT) (envelope-from jlemon@FreeBSD.org) Message-Id: <200006221846.LAA36691@freefall.freebsd.org> From: Jonathan Lemon Date: Thu, 22 Jun 2000 11:46:03 -0700 (PDT) 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 X-Loop: FreeBSD.ORG jlemon 2000/06/22 11:46:03 PDT Modified files: usr.bin/tail forward.c Log: If the kevent() registration fails (probably due to the underlying filesystem not being kq-aware), then fall back to using sleep. This allows tail to work with NFS filesystems again without chewing up CPU time. When given the -F flag, resort to sleep/stat after the file was moved or deleted. This allows a window where the file being tailed does not exist at all, which is typically the case during log rotation. Switch back to using kq (if possible) after the file is reopened. Revision Changes Path 1.14 +54 -20 src/usr.bin/tail/forward.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message