From 8074af7957c713f8e3a7687b3b1c4a82652bb3d8 Mon Sep 17 00:00:00 2001 From: cheloha Date: Fri, 13 Jan 2023 06:53:04 +0000 Subject: [PATCH] timeout(1): sig_atomic_t variables must also be 'volatile'; ok job@ --- usr.bin/timeout/timeout.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/timeout/timeout.c b/usr.bin/timeout/timeout.c index e38e66e4850..fb4d9c81970 100644 --- a/usr.bin/timeout/timeout.c +++ b/usr.bin/timeout/timeout.c @@ -1,4 +1,4 @@ -/* $OpenBSD: timeout.c,v 1.24 2023/01/12 14:08:39 jmc Exp $ */ +/* $OpenBSD: timeout.c,v 1.25 2023/01/13 06:53:04 cheloha Exp $ */ /* * Copyright (c) 2021 Job Snijders @@ -46,10 +46,10 @@ #define EXIT_TIMEOUT 124 -static sig_atomic_t sig_chld = 0; -static sig_atomic_t sig_term = 0; -static sig_atomic_t sig_alrm = 0; -static sig_atomic_t sig_ign = 0; +static volatile sig_atomic_t sig_chld = 0; +static volatile sig_atomic_t sig_term = 0; +static volatile sig_atomic_t sig_alrm = 0; +static volatile sig_atomic_t sig_ign = 0; static void __dead usage(void) -- 2.20.1