Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 542b7c6

Browse files
committed
Clear QueryCancel and ProcDiePending at start of proc_exit, to ensure
that leftover cancel/die requests cannot interfere with exit activities.
1 parent cb7ce7d commit 542b7c6

File tree

1 file changed

+9
-1
lines changed
  • src/backend/storage/ipc

1 file changed

+9
-1
lines changed

src/backend/storage/ipc/ipc.c

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
*
99
*
1010
* IDENTIFICATION
11-
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.58 2000/12/30 01:20:55 tgl Exp $
11+
* $Header: /cvsroot/pgsql/src/backend/storage/ipc/ipc.c,v 1.59 2001/01/07 04:30:41 tgl Exp $
1212
*
1313
* NOTES
1414
*
@@ -126,6 +126,14 @@ proc_exit(int code)
126126
*/
127127
proc_exit_inprogress = true;
128128

129+
/*
130+
* Forget any pending cancel or die requests; we're doing our best
131+
* to close up shop already. Note that the signal handlers will not
132+
* set these flags again, now that proc_exit_inprogress is set.
133+
*/
134+
QueryCancel = false;
135+
ProcDiePending = false;
136+
129137
if (DebugLvl > 1)
130138
elog(DEBUG, "proc_exit(%d)", code);
131139

0 commit comments

Comments
 (0)