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: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
Date: Wed, 14 Oct 2020 22:44:12 +0000
Message-ID: <E1kSpVE-0004Bk-GG@gemulon.postgresql.org> (raw)

Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.

If WaitEventSetWait() reports that the postmaster has gone away, later
calls to WaitEventSetWait() should continue to report that.  Otherwise
further waits that occur in the proc_exit() path after we already
noticed the postmaster's demise could block forever.

Back-patch to 13, where the kqueue support landed.

Reported-by: Tom Lane <tgl@sss.pgh.pa.us>
Discussion: https://postgr.es/m/3624029.1602701929%40sss.pgh.pa.us

Branch
------
REL_13_STABLE

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

Modified Files
--------------
src/backend/storage/ipc/latch.c | 12 +++++++++++-
1 file changed, 11 insertions(+), 1 deletion(-)



view thread (2+ messages)

Message-ID: <E1kSpVE-0004Bk-GG@gemulon.postgresql.org>
Permalink:  ../E1kSpVE-0004Bk-GG@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1kSpVE-0004Bk-GG@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: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
  In-Reply-To: <E1kSpVE-0004Bk-GG@gemulon.postgresql.org>
  References: <E1kSpVE-0004Bk-GG@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