[PATCH] Revert "examples/symmetric_mp: do not print or exit in handler"

Stephen Hemminger stephen at networkplumber.org
Tue Oct 27 17:10:54 CET 2026


On Tue, 27 Oct 2026 08:07:48 -0700
Stephen Hemminger <stephen at networkplumber.org> wrote:

> +/*
> + * Signal handler configured for SIGTERM and SIGINT to print stats on exit
> + *
> + * This is not safe way to exit for a real production application; it is just an example.
> + * Doing proper shutdown with primary/secondary requires process monitoring
> + * and rendezvous.
> + */
>  static void
> -print_stats(void)
> +print_stats(int signum)
>  {

Needs fix to add __rte_unused here.


More information about the dev mailing list