pgsql: Emulate sigprocmask(), not sigsetmask(), on Windows.

From: Thomas Munro <tmunro(at)postgresql(dot)org>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Emulate sigprocmask(), not sigsetmask(), on Windows.
Date: 2022-07-16 05:09:35
Message-ID: E1oCa3b-000Qjg-0k@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Emulate sigprocmask(), not sigsetmask(), on Windows.

Since commit a65e0864, we've required Unix systems to have
sigprocmask(). As noted in that commit's message, we were still
emulating the historical pre-standard sigsetmask() function in our
Windows support code. Emulate standard sigprocmask() instead, for
consistency.

The PG_SETMASK() abstraction is now redundant and all calls could in
theory be replaced by plain sigprocmask() calls, but that isn't done by
this commit.

Reviewed-by: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
Discussion: https://postgr.es/m/3153247.1657834482%40sss.pgh.pa.us

Branch
------
master

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

Modified Files
--------------
src/backend/port/win32/signal.c | 29 +++++++++++++++++++++++------
src/include/libpq/pqsignal.h | 11 +++++++----
2 files changed, 30 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Peter Eisentraut 2022-07-16 06:53:16 pgsql: Replace many MemSet calls with struct initialization
Previous Message Thomas Munro 2022-07-16 00:30:26 pgsql: Make dsm_impl_posix_resize more future-proof.