From 419452d1b3948aad09ffccfe61f845fafcb0cc37 Mon Sep 17 00:00:00 2001 From: Avinesh Kumar Date: Mon, 7 Aug 2023 11:31:56 +0530 Subject: [PATCH] syscalls/write05: Use volatile int var for signal handler Signed-off-by: Avinesh Kumar Reviewed-by: Cyril Hrubis --- testcases/kernel/syscalls/write/write05.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/write/write05.c b/testcases/kernel/syscalls/write/write05.c index 128c29856af..b907624a8e3 100644 --- a/testcases/kernel/syscalls/write/write05.c +++ b/testcases/kernel/syscalls/write/write05.c @@ -45,7 +45,7 @@ static struct tcase { {&pipefd[1], &buf, sizeof(buf), EPIPE}, }; -static int sigpipe_cnt; +static volatile int sigpipe_cnt; static void sighandler(int sig) {