From ec1583f44f890ba86fdda5955cbaf7729090fe07 Mon Sep 17 00:00:00 2001 From: Dave Page Date: Wed, 20 Jul 2005 11:54:36 +0000 Subject: [PATCH] Remove exit_nicely function, along with it's exit(1) call, per Marko Ristola. --- connection.c | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/connection.c b/connection.c index 0e6489b..595f100 100644 --- a/connection.c +++ b/connection.c @@ -2561,13 +2561,6 @@ CC_cleanup(ConnectionClass *self) } -static void -exit_nicely(PGconn *conn) -{ - PQfinish(conn); - exit(1); -} - char CC_connect(ConnectionClass *self, char password_req, char *salt_para) { @@ -3121,7 +3114,7 @@ LIBPQ_connect(ConnectionClass *self) { CC_set_error(self,CONNECTION_COULD_NOT_ESTABLISH,PQerrorMessage(self->pgconn)); mylog("could not establish connection to the database %s \n",PQerrorMessage(self->pgconn)); - exit_nicely(self->pgconn); + PQfinish(self->pgconn); free(conninfo); return 0; } -- 2.39.5