tail -f

Mike Taylor mirk at warwick.UUCP
Mon Dec 12 03:48:40 AEST 1988


>>>Can someone please tell me how 'tail -f' works? ...
>>In fact, it *does* do a busy loop while doing "read"s (not "stat"s) of
>>the file; it just sleeps 1 second between attempts to "read" ...
>I suppose it could use select(2)...

Not necessarily - select(2) is a Berkeleyism, I believe, so code written
using it is not portable to older Unices - Vanilla V7, for instance.
I must agree that it would be a far more elegant solution, though.
I am surprised that it hasn't been re-written for Berkeley systems.
______________________________________________________________________________
Mike Taylor - {Christ,M{athemat,us}ic}ian ...  Email to: mirk at uk.ac.warwick.cs
*** Unkle Mirk sez: "Gm F#7 Bb Cm->Gm->Eb->Gm F; Gm F#7 Bb C Eb C Bb Dm D" ***
------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list