mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
Merge 3.5 (socket)
This commit is contained in:
commit
639f42115d
1 changed files with 5 additions and 0 deletions
|
|
@ -2211,7 +2211,12 @@ sock_accept_impl(PySocketSockObject *s, void *data)
|
|||
#else
|
||||
ctx->result = accept(s->sock_fd, SAS2SA(ctx->addrbuf), ctx->addrlen);
|
||||
#endif
|
||||
|
||||
#ifdef MS_WINDOWS
|
||||
return (ctx->result != INVALID_SOCKET);
|
||||
#else
|
||||
return (ctx->result >= 0);
|
||||
#endif
|
||||
}
|
||||
|
||||
/* s._accept() -> (fd, address) */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue