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:
parent
6bf356ef28
commit
ff67135bec
|
@ -259,26 +259,13 @@ xf86RemoveSIGIOHandler(int fd)
|
|||
int
|
||||
xf86BlockSIGIO(void)
|
||||
{
|
||||
sigset_t set, old;
|
||||
int ret;
|
||||
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, SIGIO);
|
||||
sigprocmask(SIG_BLOCK, &set, &old);
|
||||
ret = sigismember(&old, SIGIO);
|
||||
return ret;
|
||||
return OsBlockSIGIO();
|
||||
}
|
||||
|
||||
void
|
||||
xf86UnblockSIGIO(int wasset)
|
||||
{
|
||||
sigset_t set;
|
||||
|
||||
if (!wasset) {
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, SIGIO);
|
||||
sigprocmask(SIG_UNBLOCK, &set, NULL);
|
||||
}
|
||||
OsReleaseSIGIO();
|
||||
}
|
||||
|
||||
void
|
||||
|
|
Loading…
Reference in New Issue
Block a user