Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit536d47b

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 commit7627b91 to see if thebuildfarm agrees.Discussion:https://postgr.es/m/21444.1492798101@sss.pgh.pa.us
1 parentdcb39c3 commit536d47b

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-
#ifndefFD_CLOEXEC
78-
#defineFD_CLOEXEC 1
79-
#endif
80-
8177

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

1990-
#ifdefF_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)

[8]ページ先頭

©2009-2025 Movatter.jp