Skip to content

Commit 9f6b196

Browse files
author
hackorum
committed
Apply dispatch-signals-on-windows-v2.patch
1 parent 9e7d152 commit 9f6b196

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

‎src/backend/postmaster/checkpointer.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -664,6 +664,11 @@ CheckpointerMain(const void *startup_data, size_t startup_data_len)
664664
static void
665665
ProcessCheckpointerInterrupts(void)
666666
{
667+
#ifdef WIN32
668+
if (UNBLOCKED_SIGNAL_QUEUE())
669+
pgwin32_dispatch_queued_signals();
670+
#endif
671+
667672
if (ProcSignalBarrierPending)
668673
ProcessProcSignalBarrier();
669674

‎src/backend/postmaster/pgarch.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -863,6 +863,11 @@ pgarch_die(int code, Datum arg)
863863
static void
864864
ProcessPgArchInterrupts(void)
865865
{
866+
#ifdef WIN32
867+
if (UNBLOCKED_SIGNAL_QUEUE())
868+
pgwin32_dispatch_queued_signals();
869+
#endif
870+
866871
if (ProcSignalBarrierPending)
867872
ProcessProcSignalBarrier();
868873

‎src/backend/postmaster/startup.c‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,11 @@ ProcessStartupProcInterrupts(void)
157157
static uint32 postmaster_poll_count = 0;
158158
#endif
159159

160+
#ifdef WIN32
161+
if (UNBLOCKED_SIGNAL_QUEUE())
162+
pgwin32_dispatch_queued_signals();
163+
#endif
164+
160165
/*
161166
* Process any requests or signals received recently.
162167
*/

0 commit comments

Comments
 (0)