Mark sigint_interrupt_enabled as sig_atomic_t
authorMichael Paquier <michael@paquier.xyz>
Thu, 29 Sep 2022 05:28:13 +0000 (14:28 +0900)
committerMichael Paquier <michael@paquier.xyz>
Thu, 29 Sep 2022 05:28:13 +0000 (14:28 +0900)
commit5ac9e869191148741539e626b84ba7e77dc71670
treeee747f5173f7eb1cb3e376090ce761703eea2d39
parentb8d8a4593a3a2daa5e16e4a3634d9284fe14667f
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
src/bin/psql/common.c
src/bin/psql/common.h
src/include/common/string.h