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 20130410191152.GS3751@eldon.alvh.no-ip.org
обсуждение исходный текст
Ответ на Re: SIGHUP not received by custom bgworkers if postmaster is notified  (Michael Paquier <michael.paquier@gmail.com>)
Ответы Re: SIGHUP not received by custom bgworkers if postmaster is notified  (Michael Paquier <michael.paquier@gmail.com>)
Список pgsql-hackers
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 handled by my example

I committed some improvements to worker_spi this morning that I think
enough demostrate signal handling capabilities, which I think is what
your submitted code would do.  If you see more use for a separate body
of sample worker code, by all means do submit that.

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



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

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