[PATCH v2 00/14] Fix signal-unsafe logging

Alan Coopersmith alan.coopersmith at oracle.com
Fri Apr 13 10:10:18 PDT 2012


On 04/13/12 09:33 AM, Chase Douglas wrote:
>> The X server must be using SigIO for some really good reasons, what are they?
> 
> To reduce input visual latency. Signal handlers are run immediately when
> the signal occurs. The process is interrupted no matter where it is,
> including when it is 500 stack frames deep from the event loop.

Whatever happened to Tiago's work to move that into a separate thread, which
should be much less fragile than a signal handler?   (Most of the Xserver is
not thread-safe, but it's also not re-entrant for being called from a signal
handler either, so either solution has to be very limited in what it calls.)

-- 
	-Alan Coopersmith-              alan.coopersmith at oracle.com
	 Oracle Solaris Engineering - http://blogs.oracle.com/alanc


More information about the xorg-devel mailing list