Re: bug in SignalSomeChildren

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: bug in SignalSomeChildren
Дата
Msg-id 12829.1292872038@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: bug in SignalSomeChildren  (Robert Haas <robertmhaas@gmail.com>)
Ответы Re: bug in SignalSomeChildren  (Robert Haas <robertmhaas@gmail.com>)
Список pgsql-hackers
Robert Haas <robertmhaas@gmail.com> writes:
> On Mon, Dec 20, 2010 at 1:26 PM, Tom Lane <tgl@sss.pgh.pa.us> wrote:
>> Robert Haas <robertmhaas@gmail.com> writes:
>>> Can we add a develop option to force use of the kill(0) method?

>> How will that avoid needing to have an honest answer from getppid()?
>> Without that you can't know what to issue kill() against.

> The answer to this question will probably be entirely self-evident if
> you stare at PostmasterIsAlive() for, well, it took me about 10
> seconds.  So probably less than five for you.

Hmm, I was thinking that PostmasterPid was set originally from getppid,
but it looks like we rely on inheriting it through fork instead.
So maybe this will work.  It's still slower and less reliable than the
getppid case for normal use, though.
        regards, tom lane


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

Предыдущее
От: David Fetter
Дата:
Сообщение: Re: Extensions, patch v20 (bitrot fixes)
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Extensions, patch v20 (bitrot fixes)