[PATCH 0/3] Make timers even more resistant to signals

Keith Packard keithp at keithp.com
Fri Sep 28 01:25:50 PDT 2012


Peter Hutterer <peter.hutterer at who-t.net> writes:

> Thanks, merged this into my tree. This should fix the remaining issues we're
> seeing with synaptics.

Did you see my comments about this patch? I'm really not excited about
adding 12 more syscalls per WaitForSomething invocation. Seems like
there are two options to fix this 'correctly':

 1) Have the synaptics driver modify the timer interval from either a
    wakeup or block handler as appropriate.

 2) Provide a signal-safe timer value setting function in DIX. This
    would set a global flag indicating that 'something' changed in the
    timers. WaitForSomething could use this flag to check whether the
    timers need fixing before computing the timeout value for select.

At the very least, the server should only be blocking SIGIO and not all
signals; that's half the syscalls...

-- 
keith.packard at intel.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 827 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20120928/2a3b1e06/attachment.pgp>


More information about the xorg-devel mailing list