mirror of
https://github.com/postgres/postgres.git
synced 2025-08-06 18:42:54 +03:00
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)
This commit is contained in:
@@ -2280,6 +2280,7 @@ SIGHUP_handler(SIGNAL_ARGS)
|
|||||||
(errmsg("received SIGHUP, reloading configuration files")));
|
(errmsg("received SIGHUP, reloading configuration files")));
|
||||||
ProcessConfigFile(PGC_SIGHUP);
|
ProcessConfigFile(PGC_SIGHUP);
|
||||||
SignalChildren(SIGHUP);
|
SignalChildren(SIGHUP);
|
||||||
|
SignalUnconnectedWorkers(SIGHUP);
|
||||||
if (StartupPID != 0)
|
if (StartupPID != 0)
|
||||||
signal_child(StartupPID, SIGHUP);
|
signal_child(StartupPID, SIGHUP);
|
||||||
if (BgWriterPID != 0)
|
if (BgWriterPID != 0)
|
||||||
|
Reference in New Issue
Block a user