diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-09 15:32:34 -0400 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2020-09-09 15:32:34 -0400 |
commit | d038c6c6318b1959640a5a4b0f25cd577ebffbdf (patch) | |
tree | 186a44e486bd831b3a778206adbd0de4bc198017 /src/backend/access/spgist/spgxlog.c | |
parent | ef1e1250e716056a240ecabc6f2a91c5956ed6c8 (diff) | |
download | postgresql-d038c6c6318b1959640a5a4b0f25cd577ebffbdf.tar.gz postgresql-d038c6c6318b1959640a5a4b0f25cd577ebffbdf.zip |
Make archiver's SIGQUIT handler exit via _exit().
Commit 8e19a8264 changed the SIGQUIT handlers of almost all server
processes not to run atexit callbacks. The archiver process was
skipped, perhaps because it's not connected to shared memory; but
it's just as true here that running atexit callbacks in a signal
handler is unsafe. So let's make it work like the rest.
In HEAD and v13, we can use the common SignalHandlerForCrashExit
handler. Before that, just tweak pgarch_exit to use _exit(2)
explicitly.
Like the previous commit, back-patch to all supported branches.
Kyotaro Horiguchi, back-patching by me
Discussion: https://postgr.es/m/1850884.1599601164@sss.pgh.pa.us
Diffstat (limited to 'src/backend/access/spgist/spgxlog.c')
0 files changed, 0 insertions, 0 deletions