mirror of
https://git.freebsd.org/src.git
synced 2026-01-16 23:02:24 +00:00
time: siginfo_recvd needs to be marked volatile
sig_atomic_t does not imply volatility, we must do it ourselves to avoid caching of siginfo_recvd loads. Sponsored by: Klara, Inc.
This commit is contained in:
parent
61e3e1776d
commit
6e824f3713
1 changed files with 1 additions and 1 deletions
|
|
@ -54,7 +54,7 @@ static void showtime(FILE *, struct timespec *, struct timespec *,
|
|||
static void siginfo(int);
|
||||
static void usage(void) __dead2;
|
||||
|
||||
static sig_atomic_t siginfo_recvd;
|
||||
static volatile sig_atomic_t siginfo_recvd;
|
||||
static char decimal_point;
|
||||
static struct timespec before_ts;
|
||||
static int hflag, pflag;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue