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:
parent
1ba4cbb159
commit
29a5b0596b
|
@ -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…
Reference in New Issue
Block a user