aboutsummaryrefslogtreecommitdiff
path: root/src/backend/commands/dbcommands.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2009-05-05 20:06:07 +0000
committerTom Lane <tgl@sss.pgh.pa.us>2009-05-05 20:06:07 +0000
commit249a899f73b88061809547f24284d54edba52698 (patch)
tree9895fa8f0ef7f67ccc7d93d9dcea004c752d97ed /src/backend/commands/dbcommands.c
parent969d7cd4315bfe30aed5221b69ee34e7cd132789 (diff)
downloadpostgresql-249a899f73b88061809547f24284d54edba52698.tar.gz
postgresql-249a899f73b88061809547f24284d54edba52698.zip
Install an atexit(2) callback that ensures that proc_exit's cleanup processing
will still be performed if something in a backend process calls exit() directly, instead of going through proc_exit() as we prefer. This is a second response to the issue that we might load third-party code that doesn't know it should not call exit(). Such a call will now cause a reasonably graceful backend shutdown, if possible. (Of course, if the reason for the exit() call is out-of-memory or some such, we might not be able to recover, but at least we will try.)
Diffstat (limited to 'src/backend/commands/dbcommands.c')
0 files changed, 0 insertions, 0 deletions