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 | 35e59398abbb562f1e831af206f1d1cc8c3cb7db (patch) | |
tree | 4a56dce212be34e36e4b3c5518e7de7c0e7c8918 /src/backend/access/gist/gist.c | |
parent | 6b473ab4f23736d67c420909ab65c55228dcd6e6 (diff) | |
download | postgresql-35e59398abbb562f1e831af206f1d1cc8c3cb7db.tar.gz postgresql-35e59398abbb562f1e831af206f1d1cc8c3cb7db.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/gist/gist.c')
0 files changed, 0 insertions, 0 deletions