mirror of
https://github.com/python/cpython.git
synced 2025-12-08 02:08:20 +00:00
Merge 3.5 (fix internal_select)
This commit is contained in:
commit
5e1989ce89
1 changed files with 1 additions and 1 deletions
|
|
@ -652,7 +652,7 @@ internal_select(PySocketSockObject *s, int writing, _PyTime_t interval,
|
||||||
assert(!(connect && !writing));
|
assert(!(connect && !writing));
|
||||||
|
|
||||||
/* Guard against closed socket */
|
/* Guard against closed socket */
|
||||||
if (s->sock_fd < 0)
|
if (s->sock_fd == INVALID_SOCKET)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
/* Prefer poll, if available, since you can poll() any fd
|
/* Prefer poll, if available, since you can poll() any fd
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue