From: Cristian Rodríguez Date: Sun, 15 Jan 2023 01:33:14 +0000 (+0000) Subject: write: signal_received should be volatile qualified X-Git-Tag: v2.39-rc1~123^2~5 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1fb77758114fe841c553b815005a6694ee043fee;p=thirdparty%2Futil-linux.git write: signal_received should be volatile qualified Because the standard says so. --- diff --git a/term-utils/write.c b/term-utils/write.c index ee31580fa3..8b86e9a9d5 100644 --- a/term-utils/write.c +++ b/term-utils/write.c @@ -67,7 +67,7 @@ #include "ttyutils.h" #include "xalloc.h" -static sig_atomic_t signal_received = 0; +static volatile sig_atomic_t signal_received = 0; struct write_control { uid_t src_uid;