diff mbox series

syscalls/write05: Use volatile int var for signal handler

Message ID 20230807060157.5089-1-akumar@suse.de
State Accepted
Headers show
Series syscalls/write05: Use volatile int var for signal handler | expand

Commit Message

Avinesh Kumar Aug. 7, 2023, 6:01 a.m. UTC
Signed-off-by: Avinesh Kumar <akumar@suse.de>
---
 testcases/kernel/syscalls/write/write05.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Cyril Hrubis Aug. 7, 2023, 9:42 a.m. UTC | #1
Hi!
Applied, thanks.
diff mbox series

Patch

diff --git a/testcases/kernel/syscalls/write/write05.c b/testcases/kernel/syscalls/write/write05.c
index 128c29856..b907624a8 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)
 {