summaryrefslogtreecommitdiffstats
path: root/Modules
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2016-07-22 15:28:55 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2016-07-22 15:28:55 (GMT)
commit5e1989ce899d4afa937977b30a7b2fe9c0bf085c (patch)
tree3c0de59565e643a84f9ad5e376145ef357152caa /Modules
parentcccf6068fa6f997751701a32121924677efcba9c (diff)
parent0cec877230a9232378eb2c7e21348029bbe83fea (diff)
downloadcpython-5e1989ce899d4afa937977b30a7b2fe9c0bf085c.zip
cpython-5e1989ce899d4afa937977b30a7b2fe9c0bf085c.tar.gz
cpython-5e1989ce899d4afa937977b30a7b2fe9c0bf085c.tar.bz2
Merge 3.5 (fix internal_select)
Diffstat (limited to 'Modules')
-rw-r--r--Modules/socketmodule.c2
1 files changed, 1 insertions, 1 deletions
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 @@ internal_select(PySocketSockObject *s, int writing, _PyTime_t interval,
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