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: Provide sigaction() for Windows.
Date: Wed, 09 Nov 2022 00:08:03 +0000
Message-ID: <E1osYdO-000Ez9-5l@gemulon.postgresql.org> (raw)

Provide sigaction() for Windows.

Commit 9abb2bfc left behind code to block signals inside signal
handlers on Windows, because our signal porting layer didn't have
sigaction().  Provide a minimal implementation that is capable of
blocking signals, to get rid of platform differences.  See also related
commit c94ae9d8.

Discussion: https://postgr.es/m/CA%2BhUKGKKKfcgx6jzok9AYenp2TNti_tfs8FMoJpL8%2B0Gsy%3D%3D_A%40mail.gmail.com

Branch
------
master

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

Modified Files
--------------
src/backend/libpq/pqsignal.c        |  9 ------
src/backend/port/win32/signal.c     | 41 ++++++++++++++++++--------
src/backend/postmaster/postmaster.c | 57 +++----------------------------------
src/include/libpq/pqsignal.h        | 14 +++++++++
src/port/pqsignal.c                 | 11 +++----
5 files changed, 53 insertions(+), 79 deletions(-)



Message-ID: <E1osYdO-000Ez9-5l@gemulon.postgresql.org>
Permalink:  ../E1osYdO-000Ez9-5l@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1osYdO-000Ez9-5l@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: Provide sigaction() for Windows.
  In-Reply-To: <E1osYdO-000Ez9-5l@gemulon.postgresql.org>
  References: <E1osYdO-000Ez9-5l@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