Skip to content

Commit 050bced

Browse files
committed
Fix: BgwShutdownHandler() routine set ProcDiePending to true. SIGQUIT causes die() routine.
1 parent e2bfc02 commit 050bced

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/bgwpool.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ BgwShutdownHandler(SIGNAL_ARGS)
8282
{
8383
int save_errno = errno;
8484

85+
ProcDiePending = true;
8586
InterruptPending = true;
8687
QueryCancelPending = true;
8788

@@ -124,7 +125,7 @@ BgwPoolMainLoop(BgwPool* poolDesc)
124125
MtmIsLogicalReceiver = true;
125126

126127
pqsignal(SIGINT, die);
127-
pqsignal(SIGQUIT, BgwShutdownHandler);
128+
pqsignal(SIGQUIT, die);
128129
pqsignal(SIGTERM, BgwShutdownHandler);
129130
pqsignal(SIGHUP, PostgresSigHupHandler);
130131

0 commit comments

Comments
 (0)