Re: How to show system messages
- From: Sven Neumann <sven gimp org>
- To: Helmethead <hoshem mel comcen com au>, Jeff Shipman <shippy nmt edu>, Carlos Toledo <sarek22 casal upc es>, gtk-list gnome org
- Subject: Re: How to show system messages
- Date: 29 Jan 2001 11:21:47 +0100
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]