1
0
mirror of https://github.com/postgres/postgres.git synced 2025-08-30 06:01:21 +03:00

Update to PyGreSQL 2.3.

This commit is contained in:
Bruce Momjian
1999-05-10 16:10:51 +00:00
parent 86dacdb74c
commit 94bd4e3da7
23 changed files with 49 additions and 5161 deletions

View File

@@ -28,7 +28,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
* $Id: pqcomm.c,v 1.69 1999/05/04 23:39:20 tgl Exp $
* $Id: pqcomm.c,v 1.70 1999/05/10 16:10:34 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -202,6 +202,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
pqdebug("%s", PQerrormsg);
return STATUS_ERROR;
}
#ifdef ONLY_REUSE_INET_SOCKETS
if (family == AF_INET) {
#endif
if ((setsockopt(fd, SOL_SOCKET, SO_REUSEADDR, (char *) &one,
sizeof(one))) == -1)
{
@@ -212,6 +217,11 @@ StreamServerPort(char *hostName, short portName, int *fdP)
pqdebug("%s", PQerrormsg);
return STATUS_ERROR;
}
#ifdef ONLY_REUSE_INET_SOCKETS
}
#endif
MemSet((char *) &saddr, 0, sizeof(saddr));
saddr.sa.sa_family = family;
if (family == AF_UNIX)