projects
/
users
/
andresfreund
/
postgres.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f5b8be
)
Fix SIGHUP handling by unconnected bgworkers
author
Alvaro Herrera
<
[email protected]
>
Wed, 10 Apr 2013 18:59:45 +0000
(15:59 -0300)
committer
Alvaro Herrera
<
[email protected]
>
Wed, 10 Apr 2013 18:59:45 +0000
(15:59 -0300)
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
patch
|
blob
|
blame
|
history
diff --git
a/src/backend/postmaster/postmaster.c
b/src/backend/postmaster/postmaster.c
index 298ad5e1ec42ff12821c2df2884b558cfb2a6550..5ff35774787f0be96d4bdf6adbdfd0d363537267 100644
(file)
--- 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)