Skip to contentSkip to conversation

syscalls/write05: Use volatile int var for signal handler

PATCH In review Avinesh Kumar 2 participants 2 messages Aug 7, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 syscalls/write05: Use volatile int var for signal handler

---
 testcases/kernel/syscalls/write/write05.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
testcases/kernel/syscalls/write/write05.c +1 -1
index 128c29856..b907624a8 100644
@@ -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)
 {
Signature · 5 lines
2.41.0


-- 
Mailing list info: https://lists.linux.it/listinfo/ltp