diff options
author | Phil Blundell <pb@reciva.com> | 2004-10-20 18:02:32 +0000 |
---|---|---|
committer | Phil Blundell <pb@reciva.com> | 2004-10-20 18:02:32 +0000 |
commit | 258c9016a0c966187a81f9d956766791d6e8c505 (patch) | |
tree | 0d5fcf49180c21a84a51e9aaef7284b911fa6998 /hw/kdrive | |
parent | cbd5fbcb7e5b802cbcff317fdc2f848043207690 (diff) |
Block SIGIO before disabling input fds. (KdEnableInput): Unblock it after
enabling them again.
Diffstat (limited to 'hw/kdrive')
-rw-r--r-- | hw/kdrive/src/kinput.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/hw/kdrive/src/kinput.c b/hw/kdrive/src/kinput.c index 1b6d94fdb..26f12e56c 100644 --- a/hw/kdrive/src/kinput.c +++ b/hw/kdrive/src/kinput.c @@ -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 |