xserver/hw/xfree86/os-support
Thomas Hellstrom 71972c2534 linux: Don't lose console events on non-evdev drivers (#29969)
The drain_console() function will race with new keyboard events being added
by the hardware causing the server to lose keyboard events if the console fd
is used for input.

Only use the drain_console() when AllowEmptyInput is off which is the best
indicator we have for whether the keyboard driver will be used. This patch
will only fix the bug when hotplugging is disabled.
What we really need is a way to figure out either whether we're _not_ using
the keyboard driver (not predictable) or a way for the keyboard driver to
disable drain_console().

X.Org Bug 29969 <http://bugs.freedesktop.org/show_bug.cgi?id=29969>

Signed-off-by: Thomas Hellstrom <thellstrom@vmware.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-09-09 10:53:34 +10:00
..
bsd Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
bus Remove more superfluous if(p) checks around free(p) 2010-06-11 19:05:46 +07:00
hurd xfree86: Hurd fix 2009-09-28 00:58:23 +02:00
linux linux: Don't lose console events on non-evdev drivers (#29969) 2010-09-09 10:53:34 +10:00
misc Fix breakage on alpha caused by c7680befe5 2009-10-06 20:58:30 -04:00
sco Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
shared Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
solaris Solaris: avoid memory leak if AGPIOC_INFO ioctl fails 2010-06-10 19:02:05 -07:00
sysv Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
.gitignore .gitignore: use common defaults with custom section #24239 2009-11-11 21:40:20 -08:00
Makefile.am Remove some unused assembly code and assyntax.h 2008-08-18 16:46:36 -04:00
int10Defines.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
xf86OSpriv.h Remove RCS tags. Fix Xprint makefile braindamage. 2006-07-21 17:56:00 -04:00
xf86_OSlib.h Add new VT support for OpenSolaris & future Solaris releases 2009-08-13 21:56:06 -07:00
xf86_OSproc.h Move OS-specific VT key handler code from common to os-support 2010-01-25 11:10:00 -08:00