From: Cristian Rodríguez Date: Sun, 15 Jan 2023 01:33:14 +0000 (+0000) Subject: hardlink: last_signal should be a volatile sig_atomic_t X-Git-Tag: v2.39-rc1~123^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=86d9efee19ea2cf0c0e04dacb7498cd3beb14842;p=thirdparty%2Futil-linux.git hardlink: last_signal should be a volatile sig_atomic_t --- 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)