Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-04-10 Thread Michael Paquier
Thanks for committing the fix! On Thu, Apr 11, 2013 at 4:11 AM, Alvaro Herrera wrote: > Michael Paquier escribió: > > Hi all, > > > > Please find attached a simple example of bgworker that logs a message > each > > time a SIGTERM or SIGHUP signal is received by it: > > - "hello signal: processed

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-04-10 Thread Alvaro Herrera
Michael Paquier escribió: > Hi all, > > Please find attached a simple example of bgworker that logs a message each > time a SIGTERM or SIGHUP signal is received by it: > - "hello signal: processed SIGHUP" when SIGHUP is handled by my example > - "hello signal: processed SIGTERM" when SIGTERM is ha

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-04-10 Thread Alvaro Herrera
Michael Paquier escribió: > Hi all, > > While playing with custom background workers, I noticed that postmaster > does not notify its registered bgworkers if it receives SIGHUP, > so you have to send a SIGHUP directly to the bgworker process to notify it. > Signal handling is correctly done for SI

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-03-22 Thread Michael Paquier
Hi all, Please find attached a simple example of bgworker that logs a message each time a SIGTERM or SIGHUP signal is received by it: - "hello signal: processed SIGHUP" when SIGHUP is handled by my example - "hello signal: processed SIGTERM" when SIGTERM is handled by my example With the current

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-03-21 Thread Michael Paquier
On Fri, Mar 22, 2013 at 12:15 AM, Alvaro Herrera wrote: > Euler Taveira escribió: > > On 21-03-2013 05:06, Michael Paquier wrote: > > > While playing with custom background workers, I noticed that > postmaster does > > > not notify its registered bgworkers if it receives SIGHUP, > > > so you have

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-03-21 Thread Alvaro Herrera
Euler Taveira escribió: > On 21-03-2013 05:06, Michael Paquier wrote: > > While playing with custom background workers, I noticed that postmaster does > > not notify its registered bgworkers if it receives SIGHUP, > > so you have to send a SIGHUP directly to the bgworker process to notify it. > > S

Re: [HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-03-21 Thread Euler Taveira
On 21-03-2013 05:06, Michael Paquier wrote: > While playing with custom background workers, I noticed that postmaster does > not notify its registered bgworkers if it receives SIGHUP, > so you have to send a SIGHUP directly to the bgworker process to notify it. > Signal handling is correctly done f

[HACKERS] SIGHUP not received by custom bgworkers if postmaster is notified

2013-03-21 Thread Michael Paquier
Hi all, While playing with custom background workers, I noticed that postmaster does not notify its registered bgworkers if it receives SIGHUP, so you have to send a SIGHUP directly to the bgworker process to notify it. Signal handling is correctly done for SIGQUIT and SIGTERM for shutdown only. A