Re: We should Axe /contrib/start-scripts

Поиск
Список
Период
Сортировка
От Aidan Van Dyk
Тема Re: We should Axe /contrib/start-scripts
Дата
Msg-id 20090826001701.GA12444@oak.highrise.ca
обсуждение исходный текст
Ответ на Re: We should Axe /contrib/start-scripts  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
* Tom Lane <tgl@sss.pgh.pa.us> [090825 18:43]:
> How would you get the latter in a portable fashion?  (Do not mention
> ps please ... and I don't want to hear about lsof either ...)

Can postmaster keep a exclusive lock on its own pid file the entire time it's
running?  If you can open it and lock it before getting the PID out of
it, you know it's not an active postmaster...  It may be a pid that
corresponds with something else, or it may be a pid of a racing
postmaster, but since you have the exclusive lock, it's not going to get
that lock...

a.

-- 
Aidan Van Dyk                                             Create like a god,
aidan@highrise.ca                                       command like a king,
http://www.highrise.ca/                                   work like a slave.

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: We should Axe /contrib/start-scripts
Следующее
От: Chander Ganesan
Дата:
Сообщение: Re: We should Axe /contrib/start-scripts