Handling signals and performance issues.

Paul Wright -$Paul$- at verence.demon.co.uk
Tue Dec 12 18:19:55 EST 2000


In article <roy-FD4A85.20535009122000 at news.panix.com>,
Roy Smith  <roy at panix.com> wrote:
>
>You might want to look at the source to the unix "tail" command (you 
>should be able to find it on any of the many GNU/Linux distribution 
>sites) and see how it implements the "-f" option, which is essentially 
>what you are trying to emulate.

It does it by repeatedly sleeping and stating the file: I've just run
strace on it.

-- 
----- Paul Wright ------| /dev/hda - 3.2Gb of spinning metal, all alone in
-paul.wright at pobox.com--| the night...
http://pobox.com/~pw201 | 



More information about the Python-list mailing list