pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds. - Mailing list pgsql-committers

From Thomas Munro
Subject pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
Date
Msg-id E1kSpVE-0004Bk-GG@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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(-)


pgsql-committers by date:

Previous
From: Thomas Munro
Date:
Subject: pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds.
Next
From: Alvaro Herrera
Date:
Subject: pgsql: Restore replication protocol's duplicate command tags