On Mon, Nov 30, 2026 at 01:49:16PM -0800, Stephen Hemminger wrote:
> The forwarding loop in lcore_main() never terminates, so the
> rte_eal_cleanup() and return in main() are unreachable. Clang
> reports this with -Wunreachable-code.
> 
> Add a signal handler setting force_quit, as done by l2fwd and
> others, and test it in the loop. The function is no longer
> __rte_noreturn, so the existing cleanup now runs on exit.
> 
> Signed-off-by: Stephen Hemminger <[email protected]>
> ---
>  examples/skeleton/basicfwd.c | 18 ++++++++++++++++--
>  1 file changed, 16 insertions(+), 2 deletions(-)
> 
Acked-by: Bruce Richardson <[email protected]>

Reply via email to