diff options
author | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-01 17:55:23 +0000 |
---|---|---|
committer | Tom Lane <tgl@sss.pgh.pa.us> | 2002-11-01 17:55:23 +0000 |
commit | 0d97eb6ac85b7239ad255a4794faca6488bd3a80 (patch) | |
tree | 4db0deb49cac987cbf2e9baa7351050f4cd75c77 /src | |
parent | 8631924e516e749bd6d9a5854830fdcc141404e5 (diff) | |
download | postgresql-0d97eb6ac85b7239ad255a4794faca6488bd3a80.tar.gz postgresql-0d97eb6ac85b7239ad255a4794faca6488bd3a80.zip |
After elog(PANIC), exit with abort() not proc_exit(). This allows a
core file to be produced for debugging, and avoids trying to run the
normal proc-exit cleanup hooks, which are likely to cause additional
problems if the system is hosed.
Diffstat (limited to 'src')
-rw-r--r-- | src/backend/utils/error/elog.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/utils/error/elog.c b/src/backend/utils/error/elog.c index f730fb9527a..66c17e2e8cc 100644 --- a/src/backend/utils/error/elog.c +++ b/src/backend/utils/error/elog.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.103 2002/09/04 20:31:30 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/error/elog.c,v 1.104 2002/11/01 17:55:23 tgl Exp $ * *------------------------------------------------------------------------- */ @@ -500,13 +500,13 @@ elog(int lev, const char *fmt,...) * Serious crash time. Postmaster will observe nonzero process * exit status and kill the other backends too. * - * XXX: what if we are *in* the postmaster? proc_exit() won't kill + * XXX: what if we are *in* the postmaster? abort() won't kill * our children... */ ImmediateInterruptOK = false; fflush(stdout); fflush(stderr); - proc_exit(2); + abort(); } /* We reach here if lev <= WARNING. OK to return to caller. */ |