xfree86: use OsBlockSIGIO from the ddx

We can ignore the "wasset" argument now since the DIX will keep proper
refcounting.

Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Keith Packard <keithp@keithp.com>
This commit is contained in:
Peter Hutterer 2012-06-22 13:09:35 +10:00
parent 6bf356ef28
commit ff67135bec

View File

@ -259,26 +259,13 @@ xf86RemoveSIGIOHandler(int fd)
int int
xf86BlockSIGIO(void) xf86BlockSIGIO(void)
{ {
sigset_t set, old; return OsBlockSIGIO();
int ret;
sigemptyset(&set);
sigaddset(&set, SIGIO);
sigprocmask(SIG_BLOCK, &set, &old);
ret = sigismember(&old, SIGIO);
return ret;
} }
void void
xf86UnblockSIGIO(int wasset) xf86UnblockSIGIO(int wasset)
{ {
sigset_t set; OsReleaseSIGIO();
if (!wasset) {
sigemptyset(&set);
sigaddset(&set, SIGIO);
sigprocmask(SIG_UNBLOCK, &set, NULL);
}
} }
void void