pgsql: initdb: Use atexit()

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема pgsql: initdb: Use atexit()
Дата
Msg-id E1ggWx1-00078x-Ed@gemulon.postgresql.org
обсуждение исходный текст
Список pgsql-committers
initdb: Use atexit()

Replace exit_nicely() calls with standard exit() and register the
cleanup actions using atexit().  The coding pattern used here mirrors
existing use in pg_basebackup.c.

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/3913a40ff104fd26f795c3d4c402ec27a1f86385

Modified Files
--------------
src/bin/initdb/initdb.c | 82 ++++++++++++++++++++++++++-----------------------
1 file changed, 43 insertions(+), 39 deletions(-)


В списке pgsql-committers по дате отправления:

Предыдущее
От: Tom Lane
Дата:
Сообщение: pgsql: Replace the data structure used for keyword lookup.
Следующее
От: Andrew Gierth
Дата:
Сообщение: pgsql: doc: document that INFO messages always go to client.