xserver/hw
Daniel Drake f92c0b9f94 Allow system call restarts upon signal interruption
The X server frequently deals with SIGIO and SIGALRM interruptions.
If process execution is inside certain blocking system calls
when these signals arrive, e.g. with the kernel blocked on
a contended semaphore, the system calls will be interrupted.

Some system calls are automatically restartable (the kernel re-executes
them with the same parameters once the signal handler returns) but
only if the signal handler allows it.

Set SA_RESTART on the signal handlers to enable this convenient
behaviour.

Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Daniel Drake <drake@endlessm.com>
(cherry picked from commit 94ab7455ab)
2015-10-26 12:18:21 -04:00
..
dmx glxproxy: Fix an obvious thinko in QueryExtensionsString 2015-10-26 12:18:12 -04:00
kdrive Xephyr: Fix broken image when endianess of client machine and host-Xserver differ 2015-06-03 09:05:39 -04:00
vfb vfb: Don't reimplement micmap so much 2014-10-08 10:10:39 +02:00
xfree86 Allow system call restarts upon signal interruption 2015-10-26 12:18:21 -04:00
xnest hw/xnest: Fix build for MinGW 2015-06-03 09:05:37 -04:00
xquartz XQuartz: Cleanup formatting of DarwinEQInit that was butchered by automation a few years ago 2015-10-19 11:07:54 -07:00
xwayland xwayland: Don't (double) destroy input resources in CloseScreen 2015-10-26 11:53:11 -04:00
xwin hw/xwin/winclipboard: Link xwinclip with -lpthread 2015-06-03 09:05:37 -04:00
Makefile.am Xwayland DDX 2014-04-03 15:19:22 -07:00