pgsql: pg_basebackup: Use atexit()

From: Peter Eisentraut <peter(at)eisentraut(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: pg_basebackup: Use atexit()
Date: 2019-01-07 15:36:27
Message-ID: E1ggWx1-00078v-EY@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

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(at)2ndquadrant(dot)com>
Reviewed-by: Michael Paquier <michael(at)paquier(dot)xyz>
Discussion: https://www.postgresql.org/message-id/flat/ec4135ba-84e9-28bf-b584-0e78d47448d5(at)2ndquadrant(dot)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(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Andrew Gierth 2019-01-07 19:02:39 pgsql: doc: document that INFO messages always go to client.
Previous Message Amit Khandekar 2019-01-07 11:33:20 Re: pgsql: Remove WITH OIDS support, change oid catalog column visibility.