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:
Keith Packard 2008-12-15 11:38:00 -08:00
parent 1ba4cbb159
commit 29a5b0596b

View File

@ -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);
}
}