]> git.ipfire.org Git - thirdparty/postgresql.git/commit
Don't clobber postmaster sigmask in dsm_impl_resize.
authorThomas Munro <tmunro@postgresql.org>
Thu, 14 Jul 2022 13:23:29 +0000 (01:23 +1200)
committerThomas Munro <tmunro@postgresql.org>
Thu, 14 Jul 2022 14:07:15 +0000 (02:07 +1200)
commit74a9ee034829153c3d5bfa270fd6372aa3147db5
tree479c8d12349587970d7e4bd25151c32b666c6bda
parent39683c69a03e525e3611c47ffaccc16be18c0a8f
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
src/backend/storage/ipc/dsm_impl.c