Remove exit_nicely function, along with it's exit(1) call, per Marko Ristola.
authorDave Page <dpage@pgadmin.org>
Wed, 20 Jul 2005 11:54:36 +0000 (11:54 +0000)
committerDave Page <dpage@pgadmin.org>
Wed, 20 Jul 2005 11:54:36 +0000 (11:54 +0000)
connection.c

index 0e6489bf6ca321dd5248bd019fae087c0595efdd..595f100932c3ecb8ebef33c03e3c978c47cd4843 100644 (file)
@@ -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;
    }