Block SIGIO before disabling input fds. (KdEnableInput): Unblock it after

enabling them again.
This commit is contained in:
Phil Blundell 2004-10-20 18:02:32 +00:00
parent cbd5fbcb7e
commit 258c9016a0

View File

@ -270,6 +270,8 @@ KdDisableInput (void)
{
int i;
KdBlockSigio ();
for (i = 0; i < kdNumInputFds; i++)
{
KdRemoveFd (kdInputFds[i].fd);
@ -297,6 +299,8 @@ KdEnableInput (void)
/* reset screen saver */
xE.u.keyButtonPointer.time = GetTimeInMillis ();
NoticeEventTime (&xE);
KdUnblockSigio ();
}
static int