In find_module(), do not silence fileno() and dup() errors.
diff --git a/Python/import.c b/Python/import.c
index beda7f9..e5581c5 100644
--- a/Python/import.c
+++ b/Python/import.c
@@ -3186,6 +3186,8 @@
             fd = dup(fd);
         fclose(fp);
         fp = NULL;
+        if (fd == -1)
+            return PyErr_SetFromErrno(PyExc_OSError);
     }
     if (fd != -1) {
         if (strchr(fdp->mode, 'b') == NULL) {