diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-09-27 09:29:56 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-09-27 09:29:56 +0900 |
commit | 78fdb1e50f7fd394505a400b507f70ecffa6d7bf (patch) | |
tree | 02f9a40f9ec2c2740f2c7d09ee638733d2cc3967 /src/include/access/parallel.h | |
parent | e1e6f8f3dfe141839220875270a81ad3a719e0b6 (diff) |
Mark ParallelMessagePending as sig_atomic_t
ParallelMessagePending was previously marked as a boolean which should
be fine on modern platforms, but the C standard recommends the use of
sig_atomic_t for variables manipulated in signal handlers.
Author: Hayato Kuroda
Discussion: https://postgr.es/m/TYAPR01MB58667C15A95A234720F4F876F5529@TYAPR01MB5866.jpnprd01.prod.outlook.com
Diffstat (limited to 'src/include/access/parallel.h')
-rw-r--r-- | src/include/access/parallel.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/include/access/parallel.h b/src/include/access/parallel.h index 983841d45e8..1ec8e33af45 100644 --- a/src/include/access/parallel.h +++ b/src/include/access/parallel.h @@ -54,7 +54,7 @@ typedef struct ParallelWorkerContext shm_toc *toc; } ParallelWorkerContext; -extern PGDLLIMPORT volatile bool ParallelMessagePending; +extern PGDLLIMPORT volatile sig_atomic_t ParallelMessagePending; extern PGDLLIMPORT int ParallelWorkerNumber; extern PGDLLIMPORT bool InitializingParallelWorker; |