From ffc3d7af4540bb089c169ab3688dd429befea9dc Mon Sep 17 00:00:00 2001 From: Leah Neukirchen Date: Thu, 27 Jan 2022 14:55:18 +0100 Subject: sig_atomic_t should be used with volatile --- extrace.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/extrace.c b/extrace.c index bf7a859..a00a1db 100644 --- a/extrace.c +++ b/extrace.c @@ -102,7 +102,7 @@ int show_env = 0; int show_exit = 0; int show_user = 0; FILE *output; -sig_atomic_t quit = 0; +volatile sig_atomic_t quit = 0; #define CPU_MAX 4096 uint32_t last_seq[CPU_MAX]; -- cgit 1.4.1