mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-13 05:51:02 +00: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>
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user