Re: How to show system messages
- From: Guy Harris <gharris flashcom net>
- To: Sven Neumann <sven gimp org>
- Cc: 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: Mon, 29 Jan 2001 21:29:43 -0800
On Mon, Jan 29, 2001 at 11:21:47AM +0100, Sven Neumann wrote:
> 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.
At least on most UNIX-flavored OSes, "select()" and "poll()" - that
being what the GLib main loop uses, depending on what's available on the
OS - *always* say that a file can be read, so that won't help.
On most if not all UNIX-flavored OSes, you'd need to poll, just as "tail
-f" does (in an application using the GLib or GTK+ main loop, that'd be
done with a timeout, as suggested in another message). Some might, at
least in some versions, have other ways of notifying an application that
a file has changed.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]