Add errno for ioctl error.

Should help us debug the issue much better in prod.