mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2025-12-23 13:10:05 +01:00
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
|
||
|---|---|---|
| .. | ||
| agp_noop.c | ||
| ioperm_noop.c | ||
| kmod_noop.c | ||
| platform_noop.c | ||
| pm_noop.c | ||
| posix_tty.c | ||
| sigio.c | ||
| sigiostubs.c | ||
| vidmem.c | ||
| VTsw_noop.c | ||
| VTsw_usl.c | ||