examples/l2fwd-keepalive: add graceful exit
authorRemy Horton <remy.horton@intel.com>
Thu, 27 Apr 2017 12:37:05 +0000 (13:37 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 1 May 2017 14:42:07 +0000 (16:42 +0200)
commit91e89e477eda7b310a0cfcee115b04d0543f15e4
tree292af37cf3fc3ceb4064c670f8170f32d2802c1f
parentab69581b74232b9e5cffd104672b0afb7096163a
examples/l2fwd-keepalive: add graceful exit

The l2fwd-keepalive example has infinite processing loops and as a
result the only way to exit it is via SIGINT/SIGTERM (e.g. Control-C).
The resulting shutdown is unclean, which is fixed by adding a signal
handler that causes the processing loops to break.

Fixes: e64833f2273a ("examples/l2fwd-keepalive: add sample application")

Signed-off-by: Remy Horton <remy.horton@intel.com>
Tested-by: Roman Korynkevych <romanx.korynkevych@intel.com>
doc/guides/rel_notes/release_17_05.rst
examples/l2fwd-keepalive/main.c