mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-14 17:18:09 +00:00
kdrive/src: revert c85ef2a6b5
Signed-off-by: stefan11111 <stefan11111@shitposting.expert>
This commit is contained in:
committed by
Enrico Weigelt
parent
7a50b1dc3d
commit
9afc6b1345
@@ -118,43 +118,6 @@ static void KdSigio(int sig)
|
||||
for (int i = 0; i < kdNumInputFds; i++)
|
||||
(*kdInputFds[i].read) (kdInputFds[i].fd, kdInputFds[i].closure);
|
||||
}
|
||||
|
||||
static void KdBlockSigio(void)
|
||||
{
|
||||
sigset_t set;
|
||||
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, SIGIO);
|
||||
sigprocmask(SIG_BLOCK, &set, 0);
|
||||
}
|
||||
|
||||
static void KdUnblockSigio(void)
|
||||
{
|
||||
sigset_t set;
|
||||
|
||||
sigemptyset(&set);
|
||||
sigaddset(&set, SIGIO);
|
||||
sigprocmask(SIG_UNBLOCK, &set, 0);
|
||||
}
|
||||
|
||||
#undef VERIFY_SIGIO
|
||||
#ifdef VERIFY_SIGIO
|
||||
|
||||
void KdAssertSigioBlocked(char *where)
|
||||
{
|
||||
sigset_t set, old;
|
||||
|
||||
sigemptyset(&set);
|
||||
sigprocmask(SIG_BLOCK, &set, &old);
|
||||
if (!sigismember(&old, SIGIO))
|
||||
ErrorF("SIGIO not blocked at %s\n", where);
|
||||
}
|
||||
|
||||
#else
|
||||
|
||||
#define KdAssertSigioBlocked(s)
|
||||
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifdef FNONBLOCK
|
||||
|
||||
Reference in New Issue
Block a user