summaryrefslogtreecommitdiffstats
path: root/usr.sbin/moused/Makefile
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>1996-09-10 19:14:49 +0000
committerpeter <peter@FreeBSD.org>1996-09-10 19:14:49 +0000
commitfa43b0934f680256cae40b300faaed9130ef45f8 (patch)
tree06d0ffff45cec4728969215e17a23ed79fc8caaf /usr.sbin/moused/Makefile
parent21a4782adf467a16704d4157e8fb05fc4e343e6a (diff)
downloadFreeBSD-src-fa43b0934f680256cae40b300faaed9130ef45f8.zip
FreeBSD-src-fa43b0934f680256cae40b300faaed9130ef45f8.tar.gz
Hack workaround XFree86 switching failure when used with /dev/sysmouse
and xdm, possibly in general. What was happening was that the server was doing a tcsetattr(.. TCSADRAIN) on the mouse fd after a write. Since /dev/sysmouse had a null t_oproc, the drain failed with EIO. Somehow this spammed XFree86 (!@&^#%*& binary release!!), and the driver was left in a bogus state (ie: switch_in_progress permanently TRUE). The simplest way out was to implement a dummy scmousestart() routine to accept any characters from the tty system and toss them into the void. It would probably be more correct to intercept scwrite()'s to the mouse device, but that's executed for every single write to the screen. Supplying a start routine to eat the characters is only executed for the mouse port during startup/shutdown, so it should be faster.
Diffstat (limited to 'usr.sbin/moused/Makefile')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud