diff options
author | peter <peter@FreeBSD.org> | 1996-09-10 19:14:49 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 1996-09-10 19:14:49 +0000 |
commit | fa43b0934f680256cae40b300faaed9130ef45f8 (patch) | |
tree | 06d0ffff45cec4728969215e17a23ed79fc8caaf /usr.sbin/moused/Makefile | |
parent | 21a4782adf467a16704d4157e8fb05fc4e343e6a (diff) | |
download | FreeBSD-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