[PATCH v2] linux: Retry VT ioctls while errno == EINTR
Cyril Brulebois
kibi at debian.org
Fri Apr 8 18:46:06 PDT 2011
Aaron Plattner <aplattner at nvidia.com> (07/04/2011):
> When the smart scheduler is enabled, the VT ioctls (particularly
> VT_WAITACTIVE) can be interrupted by the smart scheduler's SIGALRMs.
> Previously, this caused the server to immediately continue on to
> ScreenInit, almost certainly causing a crash or failure because the X
> server that owned the VT hadn't finished cleaning up. As of commit
> 7ee965a300c9eddcc1acacf9414cfe3e589222a8, it causes a FatalError
> instead.
>
> Retrying the ioctl as long as it fails with errno == EINTR fixes the
> problem and allows server regenerations to trigger VT switches that
> actually succeed.
>
> Signed-off-by: Aaron Plattner <aplattner at nvidia.com>
Reviewed-by: Cyril Brulebois <kibi at debian.org>
KiBi.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg-devel/attachments/20110409/0797ba14/attachment.pgp>
More information about the xorg-devel
mailing list