Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Fix SIGHUP handling by unconnected bgworkers
authorAlvaro Herrera <alvherre@alvh.no-ip.org>
Wed, 10 Apr 2013 18:59:45 +0000 (15:59 -0300)
committerAlvaro Herrera <alvherre@alvh.no-ip.org>
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

index 298ad5e1ec42ff12821c2df2884b558cfb2a6550..5ff35774787f0be96d4bdf6adbdfd0d363537267 100644 (file)
@@ -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)