raise an OSError for invalid fds #4991
3 files changed