From 61a7d576f2a287ef59071da9d9d7a0cd473ed98b Mon Sep 17 00:00:00 2001 From: Alvaro Herrera Date: Wed, 10 Apr 2013 15:59:45 -0300 Subject: [PATCH] Fix SIGHUP handling by unconnected bgworkers Add a SignalUnconnectedWorkers() call so that non-database-connected background workers are also notified when postmaster is SIGHUPped. Previously, only database-connected workers were. Michael Paquier (bug report and fix) --- src/backend/postmaster/postmaster.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 298ad5e1ec4..5ff35774787 100644 --- a/src/backend/postmaster/postmaster.c +++ b/src/backend/postmaster/postmaster.c @@ -2280,6 +2280,7 @@ SIGHUP_handler(SIGNAL_ARGS) (errmsg("received SIGHUP, reloading configuration files"))); ProcessConfigFile(PGC_SIGHUP); SignalChildren(SIGHUP); + SignalUnconnectedWorkers(SIGHUP); if (StartupPID != 0) signal_child(StartupPID, SIGHUP); if (BgWriterPID != 0) -- 2.30.2