Use atexit() in initdb and pg_basebackup

From: Peter Eisentraut <peter(dot)eisentraut(at)2ndquadrant(dot)com>
To: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Use atexit() in initdb and pg_basebackup
Date: 2018-12-29 15:12:39
Message-ID: ec4135ba-84e9-28bf-b584-0e78d47448d5@2ndquadrant.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

initdb and pg_basebackup can use atexit() to register cleanup actions
instead of requiring the use of custom exit_nicely() etc. Patches attached.

--
Peter Eisentraut http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Remote DBA, Training & Services

Attachment Content-Type Size
0001-pg_basebackup-Use-atexit.patch text/plain 23.4 KB
0002-initdb-Use-atexit.patch text/plain 9.5 KB

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Peter Eisentraut 2018-12-29 15:29:28 Re: Clean up some elog messages and comments for do_pg_stop_backup and do_pg_start_backup
Previous Message Peter Eisentraut 2018-12-29 15:03:11 Re: pg_upgrade: Pass -j down to vacuumdb