mirror of
https://gitlab.com/chrony/chrony.git
synced 2025-12-03 18:05:06 -05:00
declare variables set from signal handlers as volatile
Make sure variables set from signal handlers are not cached in registers.
This commit is contained in:
3
sched.c
3
sched.c
@@ -111,7 +111,8 @@ static struct timespec last_class_dispatch[SCH_NumberOfClasses];
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
static int need_to_exit;
|
||||
/* Flag terminating the main loop, which can be set from a signal handler */
|
||||
static volatile int need_to_exit;
|
||||
|
||||
/* ================================================== */
|
||||
|
||||
|
||||
Reference in New Issue
Block a user