> > 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