[PATCH] linux: Fix CPU usage bug in console fd flushing

Mikhail Gusarov dottedmag at dottedmag.net
Sun Nov 14 08:06:36 PST 2010


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>

-- 
  http://fossarchy.blogspot.com/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 489 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg-devel/attachments/20101114/cc498368/attachment-0001.pgp>


More information about the xorg-devel mailing list