]> granicus.if.org Git - postgresql/commit
Treat EPERM as a non-error case when checking to see if old postmaster
authorTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2005 03:48:49 +0000 (03:48 +0000)
committerTom Lane <tgl@sss.pgh.pa.us>
Fri, 18 Mar 2005 03:48:49 +0000 (03:48 +0000)
commit7a969cad2ed6559a7e17d7ce7920f5e59141d765
treeadd5e8baa81674eb7a9f989ccc089fa2f6e2f1de
parentd344505d1bbaa543dc6cba1280fffeeab47207d1
Treat EPERM as a non-error case when checking to see if old postmaster
is still alive.  This improves our odds of not getting fooled by an
unrelated process when checking a stale lock file.  Other checks already
in place, plus one newly added in checkDataDir(), ensure that we cannot
attempt to usurp the place of a postmaster belonging to a different userid,
so there is no need to error out.  Add comments indicating the importance
of these other checks.
src/backend/postmaster/postmaster.c
src/backend/utils/init/miscinit.c