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> |
||
---|---|---|
.. | ||
int10 | ||
lnx_acpi.c | ||
lnx_agp.c | ||
lnx_apm.c | ||
lnx_axp.c | ||
lnx_bell.c | ||
lnx_ev56.c | ||
lnx_init.c | ||
lnx_kmod.c | ||
lnx_video.c | ||
Makefile.am |