- Notifications
You must be signed in to change notification settings - Fork4.9k
Commit42e538f
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 parenteb9d1f0 commit42e538f
1 file changed
+5
-2
lines changedLines changed: 5 additions & 2 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
574 | 574 |
| |
575 | 575 |
| |
576 | 576 |
| |
577 |
| - | |
578 |
| - | |
| 577 | + | |
| 578 | + | |
| 579 | + | |
| 580 | + | |
| 581 | + | |
579 | 582 |
| |
580 | 583 |
| |
581 | 584 |
| |
|
0 commit comments
Comments
(0)