From: Peter Eisentraut <peter@eisentraut.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: pg_basebackup: Use atexit()
Date: Mon, 07 Jan 2019 15:36:27 +0000
Message-ID: <E1ggWx1-00078v-EY@gemulon.postgresql.org> (raw)
pg_basebackup: Use atexit()
Instead of using our custom disconnect_and_exit(), just register the
desired cleanup using atexit() and use the standard exit() to leave
the program.
Reviewed-by: Alvaro Herrera <alvherre@2ndquadrant.com>
Reviewed-by: Michael Paquier <michael@paquier.xyz>
Discussion: https://www.postgresql.org/message-id/flat/ec4135ba-84e9-28bf-b584-0e78d47448d5@2ndquadrant.com/
Branch
------
master
Details
-------
https://git.postgresql.org/pg/commitdiff/a4205fa00d526c3158c677a3d82042f88d429f84
Modified Files
--------------
src/bin/pg_basebackup/pg_basebackup.c | 142 +++++++++++++++++----------------
src/bin/pg_basebackup/pg_receivewal.c | 45 ++++++-----
src/bin/pg_basebackup/pg_recvlogical.c | 18 ++---
3 files changed, 104 insertions(+), 101 deletions(-)
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-committers@postgresql.org
Cc: peter@eisentraut.org
Subject: Re: pgsql: pg_basebackup: Use atexit()
In-Reply-To: <E1ggWx1-00078v-EY@gemulon.postgresql.org>
References: <E1ggWx1-00078v-EY@gemulon.postgresql.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox