xserver-multidpi/hw/xfree86/os-support/linux
Adam Jackson a6b9e8f1e5 linux: Fix CPU usage bug in console fd flushing
If the vt gets a vhangup from under us, then the tty will appear ready
in select(), but trying to tcflush() it will return -EIO, so we'll spin
around at 100% CPU for no reason.  Notice this condition and unregister
the handler if it happens.

Signed-off-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Mikhail Gusarov <dottedmag@dottedmag.net>
Reviewed-by: Julien Cristau <jcristau@debian.org>
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
2010-11-19 11:11:04 +10:00
..
int10 Replace X-allocation functions with their C89 counterparts 2010-05-13 00:22:37 +07:00
lnx_acpi.c xfree86: Remove superfluous ifdef DEBUG checks. 2009-05-16 12:20:57 +10:00
lnx_agp.c Remove unnecessary parentheses around return values in functions 2010-06-10 06:42:42 -07:00
lnx_apm.c Remove lnx_font.c and lnx.h 2009-11-06 06:23:26 -08:00
lnx_axp.c Use glibc's in/out routines 2009-11-16 20:17:29 -08:00
lnx_bell.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
lnx_ev56.c Use glibc's in/out routines 2009-11-16 20:17:29 -08:00
lnx_init.c linux: Fix CPU usage bug in console fd flushing 2010-11-19 11:11:04 +10:00
lnx_kmod.c Rework symbol visibility for easier maintenance 2008-12-03 05:43:34 -02:00
lnx_video.c Do not trap access to timer and keyboard 2010-11-10 14:42:44 -08:00
Makefile.am Remove lnx_font.c and lnx.h 2009-11-06 06:23:26 -08:00