[Top][All Lists]

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

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

From: Paul Eggert
Subject: Re: why doesn't "tail -f" use select or poll?
Date: Sun, 26 Mar 2006 21:42:08 -0800
User-agent: Gnus/5.1007 (Gnus v5.10.7) Emacs/21.4 (gnu/linux)

Joshua Haberman <address@hidden> writes:

> Is there any reason why "tail -f" doesn't use select or poll, instead
> of sleep?

Mostly inertia, I'd guess.  The whole area used to be a portability

These days programs should use pselect if available, in preference to
either 'select' or 'poll'.  Perhaps 'tail' could be rewritten to use
'pselect' if available, falling back on sleep otherwise; that would
tend to avoid big chunks of the minefield.

reply via email to

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