examples/l3fwd-power: fix early shutdown
authorHarneet Singh <harneet.singh@intel.com>
Fri, 29 Oct 2021 14:05:56 +0000 (14:05 +0000)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 16 Nov 2021 15:22:26 +0000 (16:22 +0100)
commit19781e7a038ac3fdae4d71904268daa6ee399001
treef251a514ddc5e6798434c21f1197fecdebe33d4b
parent79b3275ada7d001cd2f5570d03fad090d499b1ab
examples/l3fwd-power: fix early shutdown

Currently, EAL init cannot be interrupted with SIGINT because the
signal handler is already overridden by the time EAL init happens.

Fix it by moving signal handler installation to after EAL
initialization, to allow SIGNIT to interrupt EAL initialization.

Fixes: d7937e2e3d12 ("power: initial import")
Fixes: 613ce6691c0d ("examples/l3fwd-power: implement proper shutdown")
Cc: stable@dpdk.org
Signed-off-by: Harneet Singh <harneet.singh@intel.com>
Acked-by: Anatoly Burakov <anatoly.burakov@intel.com>
examples/l3fwd-power/main.c