From 86d9efee19ea2cf0c0e04dacb7498cd3beb14842 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Cristian=20Rodr=C3=ADguez?= Date: Sun, 15 Jan 2023 01:33:14 +0000 Subject: [PATCH] hardlink: last_signal should be a volatile sig_atomic_t --- misc-utils/hardlink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/misc-utils/hardlink.c b/misc-utils/hardlink.c index 3a6b5df8ac..8cab567685 100644 --- a/misc-utils/hardlink.c +++ b/misc-utils/hardlink.c @@ -218,7 +218,7 @@ static void *files_by_ino; * The last signal we received. We store the signal here in order to be able * to break out of loops gracefully and to return from our nftw() handler. */ -static int last_signal; +static volatile sig_atomic_t last_signal; #define is_log_enabled(_level) (quiet == 0 && (_level) <= (unsigned int)opts.verbosity) -- 2.47.3