Re: Moving main loop to GLib.



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]