Mark sigint_interrupt_enabled as sig_atomic_t
Michael Paquier <michael@paquier.xyz>
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
Files
| Path | Change | +/− |
|---|---|---|
| src/bin/psql/common.c | modified | +1 −1 |
| src/bin/psql/common.h | modified | +2 −1 |
| src/include/common/string.h | modified | +3 −1 |
Discussion
- [small patch] Change datatype of ParallelMessagePending from "volatile bool" to "volatile sig_atomic_t" 8 messages · 2022-09-26 → 2022-09-29