diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2016-07-22 15:28:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2016-07-22 15:28:55 (GMT) |
commit | 5e1989ce899d4afa937977b30a7b2fe9c0bf085c (patch) | |
tree | 3c0de59565e643a84f9ad5e376145ef357152caa /Modules | |
parent | cccf6068fa6f997751701a32121924677efcba9c (diff) | |
parent | 0cec877230a9232378eb2c7e21348029bbe83fea (diff) | |
download | cpython-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.c | 2 |
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 |