Date: Sun, 25 Nov 2001 23:21:02 +0000 From: Ian Dowse <iedowse@maths.tcd.ie> To: Kris Kennaway <kris@obsecurity.org> Cc: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: Re: cvs commit: src/usr.bin/tail forward.c Message-ID: <200111252321.aa42920@salmon.maths.tcd.ie> In-Reply-To: Your message of "Sun, 25 Nov 2001 14:45:40 PST." <20011125144540.A93369@xor.obsecurity.org>
next in thread | previous in thread | raw e-mail | index | archive | help
In message <20011125144540.A93369@xor.obsecurity.org>, Kris Kennaway writes: > >Hmm, this strikes me as a bit nasty...ideally you shouldn't have to >poll for any status changes in a kqueue world. Is there an easy way >kq could be improved to handle this? I guess tail could add a kevent for every component in the specified path including expanded symlinks (and resort to polling if any were on filesystems that don't support kqueue). I think that would just over-complicate tail for very little real gain. Note that tail -f doesn't use polling; it's only when you explicitly tell tail that the path might change by specifying "-F" that it gets used. I suppose for -F, the timeout could be increased to 5 or 10 seconds also because simple renames within the same directory are noticed immediately. Ian 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?200111252321.aa42920>