diff options
| author | Tom Lane <tgl@sss.pgh.pa.us> | 2001-01-14 05:08:17 +0000 |
|---|---|---|
| committer | Tom Lane <tgl@sss.pgh.pa.us> | 2001-01-14 05:08:17 +0000 |
| commit | 36839c192706f5abd75bdcb02b6a7cace14ce108 (patch) | |
| tree | 3022631b1208e1227684db86c12cbba7da15f611 /src/backend/utils/init/globals.c | |
| parent | 027f144e390afa6f189270e8c2a2a56c0a88f646 (diff) | |
| download | postgresql-36839c192706f5abd75bdcb02b6a7cace14ce108.tar.gz | |
Restructure backend SIGINT/SIGTERM handling so that 'die' interrupts
are treated more like 'cancel' interrupts: the signal handler sets a
flag that is examined at well-defined spots, rather than trying to cope
with an interrupt that might happen anywhere. See pghackers discussion
of 1/12/01.
Diffstat (limited to 'src/backend/utils/init/globals.c')
| -rw-r--r-- | src/backend/utils/init/globals.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index 4359ef60a8..8e9d4c95db 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.49 2001/01/07 04:17:29 tgl Exp $ + * $Header: /cvsroot/pgsql/src/backend/utils/init/globals.c,v 1.50 2001/01/14 05:08:16 tgl Exp $ * * NOTES * Globals used all over the place should be declared here and not @@ -34,7 +34,12 @@ ProtocolVersion FrontendProtocol = PG_PROTOCOL_LATEST; bool Noversion = false; bool Quiet = false; -volatile bool QueryCancel = false; + +volatile bool InterruptPending = false; +volatile bool QueryCancelPending = false; +volatile bool ProcDiePending = false; +volatile bool ImmediateInterruptOK = false; +volatile uint32 CritSectionCount = 0; int MyProcPid; struct Port *MyProcPort; @@ -56,9 +61,7 @@ BackendId MyBackendId; char *DatabaseName = NULL; char *DatabasePath = NULL; -bool MyDatabaseIdIsInitialized = false; Oid MyDatabaseId = InvalidOid; -bool TransactionInitWasProcessed = false; bool IsUnderPostmaster = false; |
