diff options
author | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 14:55:18 +0100 |
---|---|---|
committer | Leah Neukirchen <leah@vuxu.org> | 2022-01-27 14:55:18 +0100 |
commit | ffc3d7af4540bb089c169ab3688dd429befea9dc (patch) | |
tree | 06a7b4c3c2d158ae47d899ea4343f74c14327786 | |
parent | 171c574f6e66ee69194ec820210b126785e94526 (diff) | |
download | extrace-ffc3d7af4540bb089c169ab3688dd429befea9dc.tar.gz extrace-ffc3d7af4540bb089c169ab3688dd429befea9dc.tar.xz extrace-ffc3d7af4540bb089c169ab3688dd429befea9dc.zip |
sig_atomic_t should be used with volatile
-rw-r--r-- | extrace.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |