xserver/hw/kdrive/src kinput.c,1.40,1.41

Phil Blundell <xserver-commit-u7BhqnqprCWvj1b/[email protected]>
Newsgroups gmane.comp.freedesktop.xserver.cvs
Message-ID <[email protected]>
Committed by: pb

Update of /cvs/xserver/xserver/hw/kdrive/src
In directory gabe:/tmp/cvs-serv23543/hw/kdrive/src

Modified Files:
	kinput.c 
Log Message:
2004-10-20  Phil Blundell  <pb-Y0/[email protected]>

	* hw/kdrive/src/kinput.c (KdDisableInput): Block SIGIO before
	disabling input fds.
	(KdEnableInput): Unblock it after enabling them again.



Index: kinput.c
===================================================================
RCS file: /cvs/xserver/xserver/hw/kdrive/src/kinput.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -u -d -r1.40 -r1.41
--- kinput.c	7 Jul 2004 19:21:07 -0000	1.40
+++ kinput.c	20 Oct 2004 18:02:32 -0000	1.41
@@ -270,6 +270,8 @@
 {
     int	i;
 
+    KdBlockSigio ();
+
     for (i = 0; i < kdNumInputFds; i++)
     {
 	KdRemoveFd (kdInputFds[i].fd);
@@ -297,6 +299,8 @@
     /* reset screen saver */
     xE.u.keyButtonPointer.time = GetTimeInMillis ();
     NoticeEventTime (&xE);
+
+    KdUnblockSigio ();
 }
 
 static int
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.