summaryrefslogtreecommitdiff
path: root/src/include
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>1999-11-16 06:13:36 +0000
committerTom Lane <tgl@sss.pgh.pa.us>1999-11-16 06:13:36 +0000
commite1492cc34ca7bd31ba8ed30f8638b33bc28ae3fd (patch)
tree8e4eecc701ccb203ab5deb26ea46335c54e120f2 /src/include
parentdc5c7713bcd620e4b8cee6c282e55afdd2a97749 (diff)
Modify elog() logic so that it won't try to longjmp(Warn_restart) before
Warn_restart has been set by the backend main loop. This means that elog(ERROR) or elog(FATAL) in the postmaster or during backend startup now have well-defined behavior: proc_exit() rather than coredump. In the case of elog() inside the postmaster, I think that proc_exit() is probably not enough --- don't we want our child backends to be forced to quit too? But I don't understand Vadim's recent changes in this area, so I'll leave it to him to look over and tweak if needed.
Diffstat (limited to 'src/include')
-rw-r--r--src/include/tcop/tcopprot.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/include/tcop/tcopprot.h b/src/include/tcop/tcopprot.h
index 65bad2234e3..03d68f0c308 100644
--- a/src/include/tcop/tcopprot.h
+++ b/src/include/tcop/tcopprot.h
@@ -6,7 +6,7 @@
*
* Copyright (c) 1994, Regents of the University of California
*
- * $Id: tcopprot.h,v 1.22 1999/10/06 21:58:18 vadim Exp $
+ * $Id: tcopprot.h,v 1.23 1999/11/16 06:13:34 tgl Exp $
*
* OLD COMMENTS
* This file was created so that other c files could get the two
@@ -37,6 +37,7 @@
#define siglongjmp longjmp
#endif
extern DLLIMPORT sigjmp_buf Warn_restart;
+extern bool Warn_restart_ready;
extern bool InError;
extern bool ExitAfterAbort;