postgresql/src/backend/port
Daniel Gustafsson 7cfa154d15 Close socket in case of errors in setting non-blocking
If configuring the newly created socket non-blocking fails we
error out and return INVALID_SOCKET, but the socket that had
been created wasn't closed. Fix by issuing closesocket in the
errorpath.

Backpatch to all supported branches.

Author: Ranier Vilela <ranier.vf@gmail.com>
Discussion: https://postgr.es/m/CAEudQApmU5CrKefH85VbNYE2y8H=-qqEJbg6RAPU65+vCe+89A@mail.gmail.com
Backpatch-through: v12
2024-01-17 11:24:11 +01:00
..
aix Remove useless whitespace at end of lines 2010-11-23 22:34:55 +02:00
tas Update copyright for 2024 2024-01-03 20:49:05 -05:00
win32 Close socket in case of errors in setting non-blocking 2024-01-17 11:24:11 +01:00
.gitignore Refactor dlopen() support 2018-09-06 11:33:04 +02:00
Makefile Remove distprep 2023-11-06 15:18:04 +01:00
atomics.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
meson.build Update copyright for 2024 2024-01-03 20:49:05 -05:00
posix_sema.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
sysv_sema.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
sysv_shmem.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
win32_sema.c Update copyright for 2024 2024-01-03 20:49:05 -05:00
win32_shmem.c Update copyright for 2024 2024-01-03 20:49:05 -05:00