[PATCH v3 0/3] testpmd control C fixes
Stephen Hemminger
stephen at networkplumber.org
Tue Mar 14 18:36:45 CET 2023
Resolve issues around using control-C in testpmd.
Using cmdline_poll() is broken and won't work right so
don't use it. Instead use cmdline_interact() and fix
the signal handling.
Stephen Hemminger (3):
testpmd: go back to using cmdline_interact
testpmd: use sig_atomic_t for flag
testpmd: enable interrupt in interactive mode
app/test-pmd/cmdline.c | 27 ++++++++++++++-------------
app/test-pmd/testpmd.c | 17 ++++++++++++-----
app/test-pmd/testpmd.h | 3 ++-
lib/cmdline/cmdline.h | 10 ++++++++++
lib/cmdline/cmdline_os_unix.c | 8 +++++++-
lib/cmdline/cmdline_os_windows.c | 18 ++++++++++++++++--
lib/cmdline/cmdline_private.h | 2 +-
lib/cmdline/version.map | 3 +++
8 files changed, 65 insertions(+), 23 deletions(-)
--
2.39.2
More information about the dev
mailing list