Re: [HACKERS] postmaster crash and .s.pgsql file

Поиск
Список
Период
Сортировка
От The Hermit Hacker
Тема Re: [HACKERS] postmaster crash and .s.pgsql file
Дата
Msg-id Pine.BSF.3.96.980126192149.252q-100000@thelab.hub.org
обсуждение исходный текст
Ответ на Re: [HACKERS] postmaster crash and .s.pgsql file  (The Hermit Hacker <scrappy@hub.org>)
Список pgsql-hackers
On Mon, 26 Jan 1998, The Hermit Hacker wrote:

> On Mon, 26 Jan 1998, Bruce Momjian wrote:
>
> >
> > When the postmaster crashes, it leaves the /tmp/.s.pgsql file in /tmp.
> > Is there a way to auto-remove it after a postmaster crash?
>
>     If we wrote the process id to the file, if the file existed, we
> could read the process id and do a 'kill(pid, 0)', it "determines if a
> specific process still exists"...
>
>     I'll try and look at it tonight, along with syslog() logging

    Oops...I screwed up *rofl*  I wasn't thinking when I wrote
this...I was thining that /tmp/.s.PGSQL was a lock file...I forgot it was
a socket :(  forget me thing about the kill :)  I haven't got a clue how
to detect whether it is active or not :(



Marc G. Fournier
Systems Administrator @ hub.org
primary: scrappy@hub.org           secondary: scrappy@{freebsd|postgresql}.org


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: socket name
Следующее
От: James Hughes
Дата:
Сообщение: Re: [HACKERS] postmaster crash and .s.pgsql file