1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-21 16:02:15 +03:00

Properly exit ODBC with 'X', allow linking on BSD/OS.

This commit is contained in:
Bruce Momjian
2001-02-10 05:50:29 +00:00
parent 618733de1a
commit fd40942fd8
23 changed files with 11 additions and 24 deletions

View File

@ -1,4 +1,3 @@
/* Module: socket.c
*
* Description: This module contains functions for low level socket
@ -78,7 +77,11 @@ SOCK_Destructor(SocketClass *self)
{
if (self->socket != -1) {
if ( ! shutdown(self->socket, 2)) /* no sends or receives */
{
SOCK_put_char(self, 'X');
SOCK_flush_output(self);
closesocket(self->socket);
}
}
if (self->buffer_in)