Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 22 Jun 2000 11:46:03 -0700 (PDT)
From:      Jonathan Lemon <jlemon@FreeBSD.org>
To:        cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tail forward.c
Message-ID:  <200006221846.LAA36691@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200006221846.LAA36691>