Re: How to show system messages



Helmethead <hoshem mel comcen com au> writes:

> Both of these methods use polling right, I don't think there's any way to be notified or block till there's new data or anything... you just have to keep testing the file for new data. And sleep() or usleep() some amount of time between checks so cpu usage don't go nuts.

You can open a GIOChannel to the file you want to read and add a watch 
to the Glib main loop so you get notified when the file can be read. I 
haven't tried reading from log files yet, but I guess it should be 
possible to use GIOChannels here.


Salut, Sven




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