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

Commit98f7515

Browse files
committed
On Cygwin, do initial connect() call in blocking mode, per report from
Jason Tishler.
1 parentfc0d3f1 commit98f7515

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/interfaces/libpq/fe-connect.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.163 2001/03/23 04:49:57 momjian Exp $
11+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.164 2001/03/31 23:14:37 tgl Exp $
1212
*
1313
*-------------------------------------------------------------------------
1414
*/
@@ -916,7 +916,7 @@ connectDBStart(PGconn *conn)
916916
*
917917
* Ewan Mellor <eem21@cam.ac.uk>.
918918
*/
919-
#if (!defined(WIN32)|| defined(WIN32_NON_BLOCKING_CONNECTIONS))&& !defined(USE_SSL)
919+
#if ((!defined(WIN32)&& !defined(__CYGWIN__))|| defined(WIN32_NON_BLOCKING_CONNECTIONS))&& !defined(USE_SSL)
920920
if (connectMakeNonblocking(conn)==0)
921921
gotoconnect_errReturn;
922922
#endif
@@ -1036,7 +1036,7 @@ connectDBStart(PGconn *conn)
10361036
* This makes the connection non-blocking, for all those cases which
10371037
* forced us not to do it above.
10381038
*/
1039-
#if (defined(WIN32)&& !defined(WIN32_NON_BLOCKING_CONNECTIONS))|| defined(USE_SSL)
1039+
#if ((defined(WIN32)|| defined(__CYGWIN__))&& !defined(WIN32_NON_BLOCKING_CONNECTIONS))|| defined(USE_SSL)
10401040
if (connectMakeNonblocking(conn)==0)
10411041
gotoconnect_errReturn;
10421042
#endif

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp