xserver/hw/xfree86/os-support
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
..
bsd Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
bus xfree86: Remove unused xf86{Map,Unmap}LegacyIO 2014-07-29 09:52:52 -04:00
hurd Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
linux systemd-logind: don't second guess D-Bus default timeout 2015-06-03 09:05:37 -04:00
misc Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
shared Allow system call restarts upon signal interruption 2015-10-26 12:18:21 -04:00
solaris Solaris: Move shared declarations to xf86_OSlib.h 2014-12-19 18:16:19 -08:00
stub xfree86: Remove xf86ReadBIOS 2014-09-16 11:58:53 -04:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
Makefile.am xfree86: Add stubs for os-support to help adding new architecture support 2011-10-15 21:18:47 -07:00
xf86_OSlib.h On linux use <termios.h> instead of <termio.h> 2015-10-26 12:18:15 -04:00
xf86_OSproc.h Drop trailing whitespaces 2014-11-12 10:25:00 +10:00
xf86OSpriv.h xfree86: Remove xf86LinearVidMem 2014-09-16 11:58:53 -04:00