Skip site navigation (1) Skip section navigation (2)

pgsql: Install an atexit(2) callback that ensures that proc_exit's

From: tgl(at)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: Install an atexit(2) callback that ensures that proc_exit's
Date: 2009-05-05 20:06:07
Message-ID: 20090505200607.74A52754101@cvs.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-committers
Log Message:
-----------
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.)

Modified Files:
--------------
    pgsql/src/backend/storage/ipc:
        ipc.c (r1.102 -> r1.103)
        (http://anoncvs.postgresql.org/cvsweb.cgi/pgsql/src/backend/storage/ipc/ipc.c?r1=1.102&r2=1.103)

pgsql-committers by date

Next:From: User BmomjianDate: 2009-05-05 21:07:20
Subject: pg-migrator - pg_migrator: Improve error reporting.
Previous:From: Tom LaneDate: 2009-05-05 19:59:00
Subject: pgsql: Install a "dead man switch" to allow the postmaster to detect

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group