bug-coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: why doesn't "tail -f" use select or poll?


From: James Youngman
Subject: Re: why doesn't "tail -f" use select or poll?
Date: Mon, 27 Mar 2006 17:59:14 +0100

On 3/26/06, Joshua Haberman <address@hidden> wrote:
> Is there any reason why "tail -f" doesn't use select or poll, instead
> of sleep?

Yes.  Plain files are always ready for reading, even if they are at
EOF.  That means that select(), poll() and epoll() will not tell you
if data has been appended to the file.

James.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]