aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-exec.c
diff options
context:
space:
mode:
authorBruce Momjian <bruce@momjian.us>2003-04-25 01:24:00 +0000
committerBruce Momjian <bruce@momjian.us>2003-04-25 01:24:00 +0000
commitdb7e46a76dc5ea8f15ed0ca67cc232b5ea38938d (patch)
treee5267da20e29b26b95ba0dcf04ce1b5809d394d1 /src/interfaces/libpq/fe-exec.c
parent5f677af2da8ca15516758a5b6c3af8565785977d (diff)
downloadpostgresql-db7e46a76dc5ea8f15ed0ca67cc232b5ea38938d.tar.gz
postgresql-db7e46a76dc5ea8f15ed0ca67cc232b5ea38938d.zip
Use closesocket() for all socket/pipe closing, because Win32 requires
it, and map that to close() on Unix.
Diffstat (limited to 'src/interfaces/libpq/fe-exec.c')
-rw-r--r--src/interfaces/libpq/fe-exec.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/interfaces/libpq/fe-exec.c b/src/interfaces/libpq/fe-exec.c
index 3fe0ddc4920..84520987812 100644
--- a/src/interfaces/libpq/fe-exec.c
+++ b/src/interfaces/libpq/fe-exec.c
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.131 2003/04/24 21:16:44 tgl Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-exec.c,v 1.132 2003/04/25 01:24:00 momjian Exp $
*
*-------------------------------------------------------------------------
*/
@@ -1161,11 +1161,7 @@ handleSyncLoss(PGconn *conn, char id, int msgLength)
id, msgLength);
conn->status = CONNECTION_BAD; /* No more connection to backend */
pqsecure_close(conn);
-#ifdef WIN32
closesocket(conn->sock);
-#else
- close(conn->sock);
-#endif
conn->sock = -1;
}