Re: atexit_callback can be a net negative

Поиск
Список
Период
Сортировка
От Claudio Freire
Тема Re: atexit_callback can be a net negative
Дата
Msg-id CAGTBQpafkhr3n0B90W8VROXKRvFHjLMbsxOZwOpLEGV_DU_TtA@mail.gmail.com
обсуждение исходный текст
Ответ на atexit_callback can be a net negative  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On Fri, Mar 7, 2014 at 2:03 AM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
> In the bug thread I proposed making atexit_callback check whether getpid()
> still matches MyProcPid.  If it doesn't, then presumably we inherited the
> atexit callback list, along with the value of MyProcPid, from some parent
> backend process whose elbow we should not joggle.  Can anyone see a flaw
> in that?

While my answer would be "not really" (lots of python libraries do the
same to handle forks), there's an optional path: pthread_atfork.



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

Предыдущее
От: Tom Lane
Дата:
Сообщение: atexit_callback can be a net negative
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Securing "make check" (CVE-2014-0067)