Re: Win32 question: getppid() with no paren

Поиск
Список
Период
Сортировка
От Claudio Natoli
Тема Re: Win32 question: getppid() with no paren
Дата
Msg-id A02DEC4D1073D611BAE8525405FCCE2B55F48D@harris.memetrics.local
обсуждение исходный текст
Ответы Re: Win32 question: getppid() with no paren t?  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers-win32
Tom Lane wrote:
> Great.  Could I get someone to implement this now?  The function that
> needs it is PostmasterIsAlive() in src/backend/storage/ipc/pmsignal.c.
> You can check whether it works by noting whether the stats processes
> shut down when the postmaster goes away ...

Here you go. If there is a better place to put the PostmasterHandle, please
do so by all means.  Also, could enable it for EXEC_BACKEND, instead of for
WIN32, which would obviate the WIN32 #ifdefs in read/write_backend_variables
(ie. so that EXEC_BACKEND would also read/write this variable out, but to no
effect in non-WIN32 EXEC_BACKENDs).

Cheers,
Claudio

---
Certain disclaimers and policies apply to all email sent from Memetrics.
For the full text of these disclaimers and policies see
<a
href="http://www.memetrics.com/emailpolicy.html">http://www.memetrics.com/em
ailpolicy.html</a>



Вложения

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Win32 question: getppid() with no parent?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Win32 question: getppid() with no paren t?