diff options
| author | Heikki Linnakangas | 2011-12-09 09:37:21 +0000 |
|---|---|---|
| committer | Heikki Linnakangas | 2011-12-09 12:21:36 +0000 |
| commit | 5d8a894e3095b2f602e901c19689f3176bf20543 (patch) | |
| tree | b917c7012c64edb02883ac4e3a2ed59368cbc06e /src/backend/utils/init/globals.c | |
| parent | d5f23af6bfbc454e86dd16e5c7a0bfc0cf6189d0 (diff) | |
Cancel running query if it is detected that the connection to the client is
lost. The only way we detect that at the moment is when write() fails when
we try to write to the socket.
Florian Pflug with small changes by me, reviewed by Greg Jaskiewicz.
Diffstat (limited to 'src/backend/utils/init/globals.c')
| -rw-r--r-- | src/backend/utils/init/globals.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/backend/utils/init/globals.c b/src/backend/utils/init/globals.c index 9ce64e67629..9417c7a3b04 100644 --- a/src/backend/utils/init/globals.c +++ b/src/backend/utils/init/globals.c @@ -29,6 +29,7 @@ ProtocolVersion FrontendProtocol; volatile bool InterruptPending = false; volatile bool QueryCancelPending = false; volatile bool ProcDiePending = false; +volatile bool ClientConnectionLost = false; volatile bool ImmediateInterruptOK = false; volatile uint32 InterruptHoldoffCount = 0; volatile uint32 CritSectionCount = 0; |
