pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Munro <tmunro@postgresql.org>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Don't clobber postmaster sigmask in dsm_impl_resize.
Date: Thu, 14 Jul 2022 14:20:41 +0000
Message-ID: <E1oBzhp-0009Bi-6F@gemulon.postgresql.org> (raw)

Don't clobber postmaster sigmask in dsm_impl_resize.

Commit 4518c798 intended to block signals in regular backends that
allocate DSM segments, but dsm_impl_resize() is also reached by
dsm_postmaster_startup().  It's not OK to clobber the postmaster's
signal mask, so only manipulate the signal mask when under the
postmaster.

Back-patch to all releases, like 4518c798.

Discussion: https://postgr.es/m/CA%2BhUKGKNpK%3D2OMeea_AZwpLg7Bm4%3DgYWk7eDjZ5F6YbozfOf8w%40mail.gmail.com

Branch
------
REL_15_STABLE

Details
-------
https://git.postgresql.org/pg/commitdiff/a715c20043c1396bc28f19514e667bfb081e8ad2

Modified Files
--------------
src/backend/storage/ipc/dsm_impl.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)



view thread (7+ messages)  latest in thread

Message-ID: <E1oBzhp-0009Bi-6F@gemulon.postgresql.org>
Permalink:  ../E1oBzhp-0009Bi-6F@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1oBzhp-0009Bi-6F@gemulon.postgresql.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-committers@postgresql.org
  Cc: tmunro@postgresql.org
  Subject: Re: pgsql: Don't clobber postmaster sigmask in dsm_impl_resize.
  In-Reply-To: <E1oBzhp-0009Bi-6F@gemulon.postgresql.org>
  References: <E1oBzhp-0009Bi-6F@gemulon.postgresql.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox