[Python-checkins] cpython (merge 3.5 -> default): Merge 3.5 (fix internal_select)

victor.stinner python-checkins at python.org
Fri Jul 22 11:33:31 EDT 2016


https://hg.python.org/cpython/rev/9abe6b386b42
changeset:   102415:9abe6b386b42
parent:      102413:a399daacb591
parent:      102414:6c11f52ab9db
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Fri Jul 22 17:28:55 2016 +0200
summary:
  Merge 3.5 (fix internal_select)

files:
  Modules/socketmodule.c |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Modules/socketmodule.c b/Modules/socketmodule.c
--- 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

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list