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

Поиск
Список
Период
Сортировка
От Alvaro Herrera
Тема Re: SIGHUP not received by custom bgworkers if postmaster is notified
Дата
Msg-id 20130410191003.GR3751@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на SIGHUP not received by custom bgworkers if postmaster is notified  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
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 SIGQUIT and SIGTERM for shutdown only.
> Attached is a patch fixing that, I simply added a call to
> SignalUnconnectedWorkers in SIGHUP_handler:postmaster.c.

Thanks, applied.

--
Álvaro Herrera                http://www.2ndQuadrant.com/
PostgreSQL Development, 24x7 Support, Training & Services



В списке pgsql-hackers по дате отправления:

Предыдущее
От: Alvaro Herrera
Дата:
Сообщение: Re: bgworker sigusr1 handler
Следующее
От: Alvaro Herrera
Дата:
Сообщение: Re: SIGHUP not received by custom bgworkers if postmaster is notified