Re: Moving main loop to GLib.
- From: Jeff Garzik <jgarzik pobox com>
- To: gtk-devel-list redhat com
- Subject: Re: Moving main loop to GLib.
- Date: Sat, 21 Nov 1998 18:06:51 -0500 (EST)
Marius Vollmer wrote:
> Some time ago I came across an interesting trick for fitting
> asynchronous signals reliably into a select/poll loop. You just make
> a pipe and include it in the read-set of your select. In the signal
> handler, you do nothing but write a byte to this pipe. The point was
> to make this kind of thing more reliable than a naive approach would
> be (due to some strangeness in the Unix signal model that I don't know
> about), so I might have missed some crucial details. I can try to
> find the original info, when there's interest.
I seem to remember that calling system calls from a signal handler might
not be a good idea.
Jeff
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]