pg.ddx.io  pgsql-committers@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Paquier <michael@paquier.xyz>
To: pgsql-committers@lists.postgresql.org
Subject: pgsql: Mark sigint_interrupt_enabled as sig_atomic_t
Date: Thu, 29 Sep 2022 05:32:14 +0000
Message-ID: <E1odm9d-0005nr-BS@gemulon.postgresql.org> (raw)

Mark sigint_interrupt_enabled as sig_atomic_t

This is a continuation of 78fdb1e, where this flag is set in the psql
callback handler used for SIGINT.  This was previously a boolean but the
C standard recommends the use of sig_atomic_t.  Note that this
influences PromptInterruptContext in string.h, where the same flag is
tracked.

Author: Hayato Kuroda
Discussion: https://postgr.es/m/TYAPR01MB58669A9EC96AA3078C2CD938F5549@TYAPR01MB5866.jpnprd01.prod.outlook.com

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5ac9e869191148741539e626b84ba7e77dc71670

Modified Files
--------------
src/bin/psql/common.c       | 2 +-
src/bin/psql/common.h       | 3 ++-
src/include/common/string.h | 4 +++-
3 files changed, 6 insertions(+), 3 deletions(-)



Message-ID: <E1odm9d-0005nr-BS@gemulon.postgresql.org>
Permalink:  ../E1odm9d-0005nr-BS@gemulon.postgresql.org/
Also on:    postgresql.org/message-id/E1odm9d-0005nr-BS@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: michael@paquier.xyz
  Subject: Re: pgsql: Mark sigint_interrupt_enabled as sig_atomic_t
  In-Reply-To: <E1odm9d-0005nr-BS@gemulon.postgresql.org>
  References: <E1odm9d-0005nr-BS@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