Re: Usage of ProcessConfigfile in SIGHUP_Handler

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Usage of ProcessConfigfile in SIGHUP_Handler
Дата
Msg-id 2033295.1724343624@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: Usage of ProcessConfigfile in SIGHUP_Handler  (Lakshmi Narayana Velayudam <dev.narayana.v@gmail.com>)
Ответы Re: Usage of ProcessConfigfile in SIGHUP_Handler
Список pgsql-hackers
Lakshmi Narayana Velayudam <dev.narayana.v@gmail.com> writes:
> My Bad Nathan, was looking at PG 11, 14 codes. Just to be sure, calling
> *ProcessConfigFile *is a bug from a signal handler is a bug, right?

No, it was not.  The previous postmaster coding blocked signals
everywhere except immediately around the main loop's select() call,
so there wasn't any real hazard of signal handlers interrupting
anything of concern.  We redid it for cleanliness, not because there
was any observable bug.

(If there had been a bug there, ProcessConfigFile would have been
the least of our problems, because all the other postmaster signals
were handled in the same style.)

            regards, tom lane



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