postgresql/src/bin
Tom Lane 6f6daa1be7 Fix pg_dump's sigTermHandler() to use _exit() not exit().
sigTermHandler() tried to be careful to invoke only operations that
are safe to do in a signal handler.  But for some reason we forgot
that exit(3) is not among those, because it calls atexit handlers
that might do various random things.  (pg_dump itself installs no
atexit handlers, but e.g. OpenSSL does.)  That led to crashes or
lockups when attempting to terminate a parallel dump or restore
via a signal.

Fix by calling _exit() instead.

Per bug #16199 from Raúl Marín.  Back-patch to all supported branches.

Discussion: https://postgr.es/m/16199-cb2f121146a96f9b@postgresql.org
2020-01-20 12:57:17 -05:00
..
initdb Translation updates 2019-11-11 10:33:28 +01:00
pg_archivecleanup Translation updates 2019-11-11 10:33:28 +01:00
pg_basebackup Translation updates 2019-11-11 10:33:28 +01:00
pg_config Translation updates 2019-11-11 10:33:28 +01:00
pg_controldata Translation updates 2019-11-11 10:33:28 +01:00
pg_ctl Translation updates 2019-11-11 10:33:28 +01:00
pg_dump Fix pg_dump's sigTermHandler() to use _exit() not exit(). 2020-01-20 12:57:17 -05:00
pg_resetwal Translation updates 2019-11-11 10:33:28 +01:00
pg_rewind Translation updates 2019-11-11 10:33:28 +01:00
pg_test_fsync Translation updates 2019-05-06 14:43:35 +02:00
pg_test_timing Translation updates 2018-08-06 20:03:55 +02:00
pg_upgrade Handle arrays and ranges in pg_upgrade's test for non-upgradable types. 2019-11-13 11:35:37 -05:00
pg_waldump Translation updates 2019-11-11 10:33:28 +01:00
pgbench Fix integer-overflow edge case detection in interval_mul and pgbench. 2019-11-07 11:23:02 -05:00
pgevent Phase 3 of pgindent updates. 2017-06-21 15:35:54 -04:00
psql Translation updates 2019-11-11 10:33:28 +01:00
scripts Translation updates 2019-11-11 10:33:28 +01:00
Makefile Rename user-facing tools with "xlog" in the name to say "wal". 2017-02-09 16:23:46 -05:00