[PATCH] linux: Fix CPU usage bug in console fd flushing
Thierry Vignaud
thierry.vignaud at gmail.com
Thu Dec 2 22:19:24 PST 2010
On 14 November 2010 17:06, Mikhail Gusarov <dottedmag at dottedmag.net> wrote:
>
> Twas brillig at 16:59:54 14.11.2010 UTC+01 when thierry.vignaud at gmail.com did gyre and gimble:
>
> TV> From 20e32420a2f75b58603eb1578c151d63e6b2e8ac Mon Sep 17 00:00:00 2001
> TV> From: Adam Jackson <ajax at redhat.com>
> TV> Date: Wed, 25 Aug 2010 11:06:38 -0400
> TV> Subject: [PATCH] linux: Fix CPU usage bug in console fd flushing
>
> TV> If the vt gets a vhangup from under us, then the tty will appear ready
> TV> in select(), but trying to tcflush() it will return -EIO, so we'll spin
> TV> around at 100% CPU for no reason. Notice this condition and unregister
> TV> the handler if it happens.
>
> TV> Signed-off-by: Adam Jackson <ajax at redhat.com>
>
> Reviewed-by: Mikhail Gusarov <dottedmag at dottedmag.net>
Will it get merged?
More information about the xorg-devel
mailing list