[Xtrans] Interrupted function call for ioctl not handled
Joerg.Vehlow at Xcerra.com
Joerg.Vehlow at Xcerra.com
Thu Oct 27 10:51:43 UTC 2016
Hi,
I just stumbled upon a bug in Xtrans socket transport on QNX 6.5:
At least on QNX 6.5 the syscall ioctl (FIONREAD) can be interrupted by a
signal leading to a return value of -1 and errno set to EINTR.
The QNX documentation doesn't mention the error, but it maps the ioctl to
a devctl, where the behavior is documented. In the POSIX specification
EINTR is also documented.
I think this is a bug even in current implementations of Xtrans, because
POSIX allows the EINTR and it for read and write it is handled, but not
for the ioctl.
Maybe someone should look into fixing it in the future.
Regards Jörg
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.x.org/archives/xorg-devel/attachments/20161027/93fa3a98/attachment.html>
More information about the xorg-devel
mailing list