about summary refs log tree commit diff
path: root/src/libstd/sync
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2019-12-06 04:30:51 +0000
committerbors <bors@rust-lang.org>2019-12-06 04:30:51 +0000
commit7b482cdf7ce55e05ee8392e1ade70966e3189cfd (patch)
tree66805c0df7473a40d093342cde3b12a5bcc9b097 /src/libstd/sync
parent234c9f21d9930e4ae804d00b191d0780959cfcbe (diff)
parentfa8b54901f1236cbcd48205856e8766496664105 (diff)
downloadrust-7b482cdf7ce55e05ee8392e1ade70966e3189cfd.tar.gz
rust-7b482cdf7ce55e05ee8392e1ade70966e3189cfd.zip
Auto merge of #66835 - AviKozokin:master, r=alexcrichton
std:win: avoid WSA_FLAG_NO_INHERIT flag and don't use SetHandleInformation on UWP

This flag is not supported on Windows 7 before SP1, and on windows server 2008 SP2. This breaks Socket creation & duplication.
This was fixed in a previous PR. cc #26658

This PR: cc #60260 reuses this flag to support UWP, and makes an attempt to handle the potential error.
This version still fails to create a socket, as the error returned by WSA on this case is WSAEINVAL (invalid argument). and not WSAEPROTOTYPE.

MSDN page for WSASocketW (that states the platform support for WSA_FLAG_NO_HANDLE_INHERIT): https://docs.microsoft.com/en-us/windows/win32/api/winsock2/nf-winsock2-wsasocketw

CC #26543
CC #26518
Diffstat (limited to 'src/libstd/sync')
0 files changed, 0 insertions, 0 deletions