On Mon, Jan 29, 2001 at 02:52:48PM -0500, Paul Davis wrote:
> pretty pointless. tail -f just runs something like this:
> 
>        while (1) {
>            now = get_current_time ();
>            if (modification_time (file) > last_time) {
>               show_recent_data (file);
>            }
>          last_time = now;
>            sleep (1);
>        }

Or just

       while (1) {
           for (;;) {
                read from file;
                if (at end of file)
                    break;
                write the stuff that was read;
           }
           sleep (1);
       }

_______________________________________________
gtk-list mailing list
[EMAIL PROTECTED]
http://mail.gnome.org/mailman/listinfo/gtk-list

Reply via email to