Re: [HACKERS] postmaster.pid - Mailing list pgsql-hackers

From Tatsuo Ishii
Subject Re: [HACKERS] postmaster.pid
Date
Msg-id 19991203171701B.t-ishii@sra.co.jp
Whole thread Raw
In response to Re: [HACKERS] postmaster.pid  (Bruce Momjian <pgman@candle.pha.pa.us>)
Responses Re: [HACKERS] postmaster.pid
List pgsql-hackers
> > 2) if it fails to create pid file, call
> > ExitPostmaster(1). ExitPostmaster calls proc_exit() and proc_exit
> > calls exit().
> 
> So you don't start if the pid file is there,

Right.

>or do you delete it if the
> port is free?

No. even if the port is free, there might be another postmaster that
uses another one.

Wait, maybe I can check postmaster.opts to see if another postamster
really exists...
--
Tatsuo Ishii



pgsql-hackers by date:

Previous
From: Bruce Momjian
Date:
Subject: Re: [HACKERS] postmaster.pid
Next
From: Magnus Hagander
Date:
Subject: RE: [HACKERS] perl-DBD-Pg (was Re: BOUNCE pgsql-ports@postgreSQL .org:Non-member submission from[Joe Brenner ] (f wd))