pgsql: Switch flags tracking pending interrupts to sig_atomic_t

From: Michael Paquier <michael(at)paquier(dot)xyz>
To: pgsql-committers(at)lists(dot)postgresql(dot)org
Subject: pgsql: Switch flags tracking pending interrupts to sig_atomic_t
Date: 2018-09-26 22:48:24
Message-ID: E1g5IbY-0003sK-Ch@gemulon.postgresql.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-committers

Switch flags tracking pending interrupts to sig_atomic_t

Those previously used bool, which should be safe on any modern
platforms, however the C standard is clear that it is better to use
sig_atomic_t for variables manipulated in signal handlers. This commit
adds at the same time PGDLLIMPORT to ClientConnectionLost.

Author: Michael Paquier
Reviewed-by: Tom Lane, Chris Travers, Andres Freund
Discussion: https://postgr.es/m/20180925011311.GD1354@paquier.xyz

Branch
------
master

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

Modified Files
--------------
src/backend/utils/init/globals.c | 10 +++++-----
src/include/miscadmin.h | 10 +++++-----
2 files changed, 10 insertions(+), 10 deletions(-)

Browse pgsql-committers by date

  From Date Subject
Next Message Tom Lane 2018-09-26 23:03:55 pgsql: Fix another portability issue from commit 758ce9b77.
Previous Message Tom Lane 2018-09-26 22:23:20 pgsql: Try another way to detect the result type of strerror_r().