app/testpmd: fix quitting in container
authorPhil Yang <phil.yang@arm.com>
Fri, 22 Sep 2017 06:21:32 +0000 (14:21 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Thu, 12 Oct 2017 00:36:58 +0000 (01:36 +0100)
commitd9a191a00e817739e2a6ecc01178a29918adf199
tree3b4fc1aee460c31cb0ced510df3b36fbf2956196
parent65a7360cc3378f5b3edd59f230141462dd98cfe9
app/testpmd: fix quitting in container

In container, the process cannot be terminated by SIGINT/SIGTERM when
execute with 'stats-period' option.
Fixed by adding a flag to exit stats period loop after received either
SIGINT or SIGTERM.

Fixes: cfea1f3048d1 ("app/testpmd: print statistics periodically")
Cc: stable@dpdk.org
Signed-off-by: Phil Yang <phil.yang@arm.com>
Acked-by: Jianbo Liu <jianbo.liu@linaro.org>
app/test-pmd/testpmd.c