Is there any case where checking the errno is insufficient?

Also, I think it's clearer to check against `errno.ENXIO` rather than `6`.