Re: atexit_callback can be a net negative

Поиск
Список
Период
Сортировка
От Andres Freund
Тема Re: atexit_callback can be a net negative
Дата
Msg-id 20140307143626.GC22909@awork2.anarazel.de
обсуждение исходный текст
Ответ на atexit_callback can be a net negative  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: atexit_callback can be a net negative  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
On 2014-03-07 00:03:48 -0500, Tom Lane wrote:
> In the bug thread I proposed making atexit_callback check whether getpid()
> still matches MyProcPid.

What are you proposing to do in that case? This is only one of the
failure cases of forking carelessly, right?
I think the only appropriate thing would be to make as much noise as
possible in that case, which is probably something like writing a
message to stderr, and then abort().

Greetings,

Andres Freund

-- Andres Freund                       http://www.2ndQuadrant.com/PostgreSQL Development, 24x7 Support, Training &
Services



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: atexit_callback can be a net negative
Следующее
От: Craig Ringer
Дата:
Сообщение: Re: Row-security on updatable s.b. views