diff options
author | Michael Paquier <michael@paquier.xyz> | 2022-11-26 20:12:33 +0900 |
---|---|---|
committer | Michael Paquier <michael@paquier.xyz> | 2022-11-26 20:12:33 +0900 |
commit | 1e314847dd69c6b3b85d36e5873d80b9e4cf028a (patch) | |
tree | af543ee142d7bf11465fee64ee3380941534fbb1 /src/bin/pg_test_fsync | |
parent | 02ac05b4c0229bd662b3afa07f370df0a5cbdb54 (diff) | |
download | postgresql-1e314847dd69c6b3b85d36e5873d80b9e4cf028a.tar.gz postgresql-1e314847dd69c6b3b85d36e5873d80b9e4cf028a.zip |
Mark two signal flags as sig_atomic_t in pgbench and pg_test_fsync
Two booleans used for timeout tracking were used within some SIGALRM
signal handlers, but they were not declared as sig_atomic_t, so mark
them as such. This has no consequence on WIN32 for both tools.
Author: Ranier Vilela
Reviewed-by: Michael Paquier, Masahiko Sawada
Discussion: https://postgr.es/m/CAEudQArCDQQiPiFR16=yu9k5s2tp4tgEe1U1ZbkW4ofx81AWWQ@mail.gmail.com
Diffstat (limited to 'src/bin/pg_test_fsync')
-rw-r--r-- | src/bin/pg_test_fsync/pg_test_fsync.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bin/pg_test_fsync/pg_test_fsync.c b/src/bin/pg_test_fsync/pg_test_fsync.c index 5f8cbb75ffd..3d5e8f30ab7 100644 --- a/src/bin/pg_test_fsync/pg_test_fsync.c +++ b/src/bin/pg_test_fsync/pg_test_fsync.c @@ -68,7 +68,7 @@ static char full_buf[DEFAULT_XLOG_SEG_SIZE], *filename = FSYNC_FILENAME; static struct timeval start_t, stop_t; -static bool alarm_triggered = false; +static sig_atomic_t alarm_triggered = false; static void handle_args(int argc, char *argv[]); |