mirror of
https://github.com/freebsd/freebsd-src.git
synced 2026-10-30 12:25:10 +01: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:
1 parent
61e3e1776d
commit
6e824f3713
1 file changed
+1
-1
+1
-1
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user