--- postgresql-7.0.2.orig/src/interfaces/libpq/fe-connect.c Sun May 21 17:19:53 2000 +++ postgresql-7.0.2/src/interfaces/libpq/fe-connect.c Fri Nov 3 15:26:08 2000 @@ -868,7 +868,7 @@ connectDBStart(PGconn *conn) if (connect(conn->sock, &conn->raddr.sa, conn->raddr_len) < 0) { #ifndef WIN32 - if (errno == EINPROGRESS || errno == 0) + if (errno == EINPROGRESS || errno == EAGAIN || errno == 0) #else if (WSAGetLastError() == WSAEINPROGRESS) #endif