Skip to content

Commit 536d47b

Browse files
committed
Remove long-obsolete catering for platforms without F_SETFD/FD_CLOEXEC.
SUSv2 mandates that <fcntl.h> provide both F_SETFD and FD_CLOEXEC, so it seems pretty unlikely that any platforms remain without those. Remove the #ifdef-ery installed by commit 7627b91 to see if the buildfarm agrees. Discussion: https://postgr.es/m/21444.1492798101@sss.pgh.pa.us
1 parent dcb39c3 commit 536d47b

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

src/interfaces/libpq/fe-connect.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,10 +74,6 @@ static int ldapServiceLookup(const char *purl, PQconninfoOption *options,
7474
#include "common/ip.h"
7575
#include "mb/pg_wchar.h"
7676

77-
#ifndef FD_CLOEXEC
78-
#define FD_CLOEXEC 1
79-
#endif
80-
8177

8278
#ifndef WIN32
8379
#define PGPASSFILE ".pgpass"
@@ -1987,7 +1983,6 @@ PQconnectPoll(PGconn *conn)
19871983
continue;
19881984
}
19891985

1990-
#ifdef F_SETFD
19911986
if (fcntl(conn->sock, F_SETFD, FD_CLOEXEC) == -1)
19921987
{
19931988
appendPQExpBuffer(&conn->errorMessage,
@@ -1997,7 +1992,6 @@ PQconnectPoll(PGconn *conn)
19971992
conn->addr_cur = addr_cur->ai_next;
19981993
continue;
19991994
}
2000-
#endif /* F_SETFD */
20011995

20021996
if (!IS_AF_UNIX(addr_cur->ai_family))
20031997
{

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy