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:
@ -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)
|
||||
|
Reference in New Issue
Block a user