| От | Tom Lane |
|---|---|
| Тема | Re: postmaster.pid |
| Дата | |
| Msg-id | 4340.1093363174@sss.pgh.pa.us обсуждение |
| Ответ на | Re: postmaster.pid (Andrew Dunstan <andrew@dunslane.net>) |
| Ответы |
Re: postmaster.pid
|
| Список | pgsql-hackers-win32 |
Andrew Dunstan <andrew@dunslane.net> writes:
> I think we're on the wrong track here. If there is a pid file then the
> postmaster will try to see if the process is running by calling
> kill(pid,0) - see backend/utils/init/miscinit.c.
> However, on Windows we simulate kill(), and always return EINVAL if the
> signal <= 0 (see port/kill.c).
That's clearly broken. Should you not send the zero signal the same way
as other signals, and just let the recipient ignore it? (This assumes
that the pre-existing postmaster is accessible to a would-be new
postmaster's kill ... is that true?)
regards, tom lane
В списке pgsql-hackers-win32 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера