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

Julien Cristau jcristau at debian.org
Wed Aug 25 08:48:51 PDT 2010


On Wed, Aug 25, 2010 at 11:09:19 -0400, Adam Jackson wrote:

> 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 at redhat.com>

Reviewed-by: Julien Cristau <jcristau at debian.org>

I remember people getting in that loop a while ago due to some
interactions with upstart stealing the console from under X, I think.

Cheers,
Julien


More information about the xorg-devel mailing list