From: | Thomas Munro <tmunro(at)postgresql(dot)org> |
---|---|
To: | pgsql-committers(at)lists(dot)postgresql(dot)org |
Subject: | pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds. |
Date: | 2020-10-14 22:44:12 |
Message-ID: | E1kSpVE-0004Bk-GG@gemulon.postgresql.org |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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(at)sss(dot)pgh(dot)pa(dot)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(-)
From | Date | Subject | |
---|---|---|---|
Next Message | Alvaro Herrera | 2020-10-14 23:16:27 | pgsql: Restore replication protocol's duplicate command tags |
Previous Message | Thomas Munro | 2020-10-14 22:43:49 | pgsql: Make WL_POSTMASTER_DEATH level-triggered on kqueue builds. |