Files
postgresql/src/bin/pg_dump
Tom Lane 71b121f425 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
..
2019-11-11 10:53:15 +01:00
2016-05-06 22:28:01 -04:00
2019-05-22 13:04:48 -04:00
2019-05-22 13:04:48 -04:00
2019-05-22 13:04:48 -04:00
2019-05-22 13:04:48 -04:00
2019-01-02 12:44:25 -05:00
2019-09-29 23:57:17 +02:00
2019-05-22 13:04:48 -04:00
2019-05-24 12:00:59 +12:00
2019-07-09 15:57:58 +02:00
2019-05-22 13:04:48 -04:00
2019-05-24 12:00:59 +12:00
2019-05-24 12:00:59 +12:00
2019-05-24 12:00:59 +12:00
2019-07-09 15:57:58 +02:00
2019-05-22 12:55:34 -04:00