mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-02-22 05:40:30 +01:00
When disabling SIGIO tracking, use SIG_IGN instead of SIG_DFL.
This avoids a race condition for drivers which mis-order the fd close and
signal disable.
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 29a5b0596b)
This commit is contained in:
parent
8f17a31aa7
commit
6d671b2dee
1 changed files with 1 additions and 1 deletions
|
|
@ -229,7 +229,7 @@ xf86RemoveSIGIOHandler(int fd)
|
|||
sigemptyset(&sa.sa_mask);
|
||||
sigaddset(&sa.sa_mask, SIGIO);
|
||||
sa.sa_flags = 0;
|
||||
sa.sa_handler = SIG_DFL;
|
||||
sa.sa_handler = SIG_IGN;
|
||||
sigaction(SIGIO, &sa, &osa);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue