[LTP] [PATCH] syscalls/pipe08: Rewrite test using new LTP API
Cyril Hrubis
chrubis@suse.cz
Fri Aug 4 11:20:03 CEST 2023
Hi!
> +static int pipefd[2];
> +static int sigpipe_cnt;
I've changed this to volatile int in order to avoid miscompilation and
pushed, thanks.
Side note, anything that is changed asynchronously from a signal handler
is better to be declared volatile in order to avoid compiler from
assuming it's value, as the compiler does not understand that execution
flow can jump into a signal handler.
--
Cyril Hrubis
chrubis@suse.cz
More information about the ltp
mailing list