Win32 question: getppid() with no parent?

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Win32 question: getppid() with no parent?
Дата
Msg-id 9939.1085679640@sss.pgh.pa.us
обсуждение исходный текст
Список pgsql-hackers-win32
On Unix, it is possible to tell whether your parent process has died
by checking to see if you have become a child of init:

    if (getppid() == 1)
       /* oh dear, I am an orphan */

Is there equivalent functionality available on Windows?

Currently, we have the pgstat child process checking for postmaster
death by watching for read-ready on a pipe.  This does not scale
pleasantly to multiple long-lived postmaster children, though, so
I'm wondering about ways for the children to detect a postmaster crash
without requiring any direct postmaster cooperation.

            regards, tom lane

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

Предыдущее
От: "Cyril VELTER"
Дата:
Сообщение: Re : Win32 binaries test / pg_dump problem
Следующее
От: "Magnus Hagander"
Дата:
Сообщение: Re: Win32 question: getppid() with no parent?