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

Marc G. Fournier <scrappy@hub.org>

From: The Hermit Hacker <scrappy@hub.org>
To: Bruce Momjian <maillist@candle.pha.pa.us>
Cc: Goran Thyni <goran@bildbasen.se>, hackers@postgreSQL.org
Date: 1998-01-26T23:24:06Z
Lists: 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