pgsql: In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem

From: tgl(at)svr1(dot)postgresql(dot)org (Tom Lane)
To: pgsql-committers(at)postgresql(dot)org
Subject: pgsql: In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem
Date: 2004-11-09 20:35:25
Message-ID: 20041109203525.22CDA3A3F14@svr1.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Log Message:
-----------
In PGSharedMemoryIsInUse, assume that EACCES indicates a shmem segment
that is of no concern to us --- it must belong to a different userid,
which means it is not a Postgres shmem segment (or at least,
not one that is relevant to our data directory). I plan a more extensive
fix in HEAD, but this is a simple change that prevents failure-to-reboot
problems for single-postmaster installations.

Tags:
----
REL7_4_STABLE

Modified Files:
--------------
pgsql/src/backend/port:
sysv_shmem.c (r1.24.2.1 -> r1.24.2.2)
(http://developer.postgresql.org/cvsweb.cgi/pgsql/src/backend/port/sysv_shmem.c.diff?r1=1.24.2.1&r2=1.24.2.2)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2004-11-09 21:30:28 pgsql: Put in place some defenses against being fooled by accidental
Previous Message Bruce Momjian 2004-11-09 16:51:02 pgsql: Add: > > * Research the use of larger pages sizes