mirror of
https://github.com/postgres/postgres.git
synced 2025-07-05 07:21:24 +03:00
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
This commit is contained in:
@ -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[]);
|
||||
|
Reference in New Issue
Block a user