forked frompostgres/postgres
- Notifications
You must be signed in to change notification settings - Fork6
Commit6f6daa1
committed
Fix pg_dump's sigTermHandler() to use _exit() not exit().
sigTermHandler() tried to be careful to invoke only operations thatare safe to do in a signal handler. But for some reason we forgotthat exit(3) is not among those, because it calls atexit handlersthat might do various random things. (pg_dump itself installs noatexit handlers, but e.g. OpenSSL does.) That led to crashes orlockups when attempting to terminate a parallel dump or restorevia 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.org1 parentff0c567 commit6f6daa1
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
609 | 609 |
| |
610 | 610 |
| |
611 | 611 |
| |
612 |
| - | |
613 |
| - | |
| 612 | + | |
| 613 | + | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
614 | 617 |
| |
615 | 618 |
| |
616 | 619 |
| |
|
0 commit comments
Comments
(0)