postgresql/src/backend/port
Daniel Gustafsson d8f6ab5f66 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
hpux Redefine Datum as uintptr_t, instead of unsigned long. 2009-12-31 19:41:37 +00:00
tas Update copyright for 2021 2021-01-02 13:06:25 -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
atomics.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
Makefile Split all OBJS style lines in makefiles into one-line-per-entry style. 2019-11-05 14:41:07 -08:00
posix_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sysv_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
sysv_shmem.c Reject huge_pages=on if shared_memory_type=sysv. 2021-10-26 13:09:00 +13:00
win32_sema.c Update copyright for 2021 2021-01-02 13:06:25 -05:00
win32_shmem.c Initial pgindent and pgperltidy run for v14. 2021-05-12 13:14:10 -04:00