Merge 3.5 (fix internal_select)
diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
index f7fe218..f8d39f6 100644
--- a/Modules/socketmodule.c
+++ b/Modules/socketmodule.c
@@ -652,7 +652,7 @@
     assert(!(connect && !writing));
 
     /* Guard against closed socket */
-    if (s->sock_fd < 0)
+    if (s->sock_fd == INVALID_SOCKET)
         return 0;
 
     /* Prefer poll, if available, since you can poll() any fd