Skip to content

Commit

Permalink
syscalls/write05: Use volatile int var for signal handler
Browse files Browse the repository at this point in the history
Signed-off-by: Avinesh Kumar <[email protected]>
Reviewed-by: Cyril Hrubis <[email protected]>
  • Loading branch information
Avinesh authored and metan-ucw committed Aug 7, 2023
1 parent 4bbd85a commit 419452d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testcases/kernel/syscalls/write/write05.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 419452d

Please sign in to comment.