From: Alvaro Herrera Date: Wed, 10 Apr 2013 18:59:45 +0000 (-0300) Subject: Fix SIGHUP handling by unconnected bgworkers X-Git-Tag: REL9_3_BETA1~112 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=61a7d576f2a287ef59071da9d9d7a0cd473ed98b;p=postgresql 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) --- diff --git a/src/backend/postmaster/postmaster.c b/src/backend/postmaster/postmaster.c index 298ad5e1ec..5ff3577478 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)