[PATCH v3 2/3] testpmd: use sig_atomic_t for flag
Stephen Hemminger
stephen at networkplumber.org
Wed Mar 15 17:31:21 CET 2023
On Tue, 14 Mar 2023 10:36:47 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:
> Standard conforming signal handling in applications should use sig_atomic_t
> for flags set by signal handler.
> https://www.gnu.org/software/libc/manual/html_node/Atomic-Data-Access.html
>
> This is really just a fancy way of saying ''int'' but adds
> to platform portablilty for DPDK.
>
> Signed-off-by: Stephen Hemminger <stephen at networkplumber.org>
Apparently, this fails on some distros because signal.h ends up including
some compatibility definitions that clash with the same definitions in
the ixgbe testpmd base code. Since fixing either base code or the distro
is a PIA not worth doing.
More information about the dev
mailing list