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
|
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
|
||||||
|
|
Loading…
Reference in New Issue
Block a user