summaryrefslogtreecommitdiff
path: root/src/backend/port/win32/socket.c
diff options
context:
space:
mode:
authorMichael Paquier <michael@paquier.xyz>2022-08-30 09:52:58 +0900
committerMichael Paquier <michael@paquier.xyz>2022-08-30 09:52:58 +0900
commitb1ec7f47e396be7dd71d19328153c2e8dce80222 (patch)
treeb1399b9563ebb4199c0ab28e2ae35e6f3274547f /src/backend/port/win32/socket.c
parent7fed801135bae14d63b11ee4a10f6083767046d8 (diff)
downloadpostgresql-b1ec7f47e396be7dd71d19328153c2e8dce80222.tar.gz
Cleanup more code and comments related to Windows NT4 (XP days)
All the code and comments cleaned up here is irrelevant since 495ed0e. Note that this removes an assumption that CreateRestrictedToken() may not exist, something that could have happened when running under Windows NT as the code stated. Rather than assuming that it may not exist, this causes pg_ctl to fail hard if the function cannot be loaded. Reported-by: Justin Pryzby Discussion: https://postgr.es/m/20220826112637.GD2342@telsasoft.com
Diffstat (limited to 'src/backend/port/win32/socket.c')
-rw-r--r--src/backend/port/win32/socket.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/backend/port/win32/socket.c b/src/backend/port/win32/socket.c
index 52944a0d33..130b60af22 100644
--- a/src/backend/port/win32/socket.c
+++ b/src/backend/port/win32/socket.c
@@ -495,7 +495,7 @@ pgwin32_send(SOCKET s, const void *buf, int len, int flags)
return -1;
}
- /* No error, zero bytes (win2000+) or error+WSAEWOULDBLOCK (<=nt4) */
+ /* No error, zero bytes */
if (pgwin32_waitforsinglesocket(s, FD_WRITE | FD_CLOSE, INFINITE) == 0)
return -1;